We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f15f2e9 commit 648e021Copy full SHA for 648e021
src/server/util/azure/ResponsesAPI.ts
@@ -52,12 +52,14 @@ export class ResponsesClient {
52
this.instructions = courseAssistant.assistant_instruction
53
54
const fileSearchTool = courseId
55
- ? createFileSearchTool({
56
- vectorStoreId: courseAssistant.vector_store_id,
57
- })
58
- : null
59
-
60
- this.tools = [fileSearchTool]
+ ? [
+ createFileSearchTool({
+ vectorStoreId: courseAssistant.vector_store_id,
+ }),
+ ]
+ : [] // needs to retrun empty array for null
61
+
62
+ this.tools = fileSearchTool
63
}
64
65
async createResponse({ input }: { input: ResponseInput }): Promise<Stream<ResponseStreamEvent> | APIError> {
0 commit comments