Skip to content

Commit eda2d60

Browse files
committed
fix duplicate import
1 parent 393f8af commit eda2d60

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/server/util/azure/ResponsesAPI.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { createFileSearchTool } from './util'
1212
import { FileSearchResultsStore } from '../../services/azureFileSearch/fileSearchResultsStore'
1313
import { getAzureOpenAIClient } from './client'
1414
import { RagIndex } from '../../db/models'
15-
import OpenAI, { APIError } from 'openai'
15+
import OpenAI from 'openai'
1616
import { ApplicationError } from '../ApplicationError'
1717

1818
const client = getAzureOpenAIClient(process.env.GPT_4O_MINI ?? '')
@@ -85,6 +85,21 @@ export class ResponsesClient {
8585
return createMockStream<ValidatedResponseInput>(sanitizedInput) as unknown as Promise<Stream<ResponseStreamEvent>>
8686
}
8787

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+
88103
return await client.responses.create({
89104
model: this.model,
90105
previous_response_id: prevResponseId || undefined,

0 commit comments

Comments
 (0)