1 parent 1c4f95c commit 9dd521aCopy full SHA for 9dd521a
1 file changed
src/services/api/openai/index.ts
@@ -217,7 +217,7 @@ export async function* queryModelOpenAI(
217
const maxTokens = resolveOpenAIMaxTokens(upperLimit, options.maxOutputTokensOverride)
218
219
// 11. Get client
220
- const client = getOpenAIClient({
+ const client = await getOpenAIClient({
221
maxRetries: 0,
222
fetchOverride: options.fetchOverride as unknown as typeof fetch,
223
source: options.querySource,
0 commit comments