Skip to content

Commit 9dd521a

Browse files
authored
修复openai类型接口第一次调用失败的bug
修复openai类型接口第一次调用失败的bug
1 parent 1c4f95c commit 9dd521a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/api/openai/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export async function* queryModelOpenAI(
217217
const maxTokens = resolveOpenAIMaxTokens(upperLimit, options.maxOutputTokensOverride)
218218

219219
// 11. Get client
220-
const client = getOpenAIClient({
220+
const client = await getOpenAIClient({
221221
maxRetries: 0,
222222
fetchOverride: options.fetchOverride as unknown as typeof fetch,
223223
source: options.querySource,

0 commit comments

Comments
 (0)