File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { createFileSearchTool } from './util'
12
12
import { FileSearchResultsStore } from '../../services/azureFileSearch/fileSearchResultsStore'
13
13
import { getAzureOpenAIClient } from './client'
14
14
import { RagIndex } from '../../db/models'
15
- import OpenAI , { APIError } from 'openai'
15
+ import OpenAI from 'openai'
16
16
import { ApplicationError } from '../ApplicationError'
17
17
18
18
const client = getAzureOpenAIClient ( process . env . GPT_4O_MINI ?? '' )
@@ -85,6 +85,21 @@ export class ResponsesClient {
85
85
return createMockStream < ValidatedResponseInput > ( sanitizedInput ) as unknown as Promise < Stream < ResponseStreamEvent > >
86
86
}
87
87
88
+ const lol = {
89
+ model : this . model ,
90
+ previous_response_id : prevResponseId || undefined ,
91
+ instructions : this . instructions ,
92
+ temperature : this . temperature ,
93
+ input : [ sanitizedInput ] ,
94
+ stream : true ,
95
+ tools : this . tools ,
96
+ tool_choice : 'auto' ,
97
+ store : true ,
98
+ include,
99
+ }
100
+
101
+ console . log ( JSON . stringify ( lol , null , 2 ) )
102
+
88
103
return await client . responses . create ( {
89
104
model : this . model ,
90
105
previous_response_id : prevResponseId || undefined ,
You can’t perform that action at this time.
0 commit comments