diff --git a/src/lib/llm/providers/openai.ts b/src/lib/llm/providers/openai.ts index 64f1bdc..05256d8 100644 --- a/src/lib/llm/providers/openai.ts +++ b/src/lib/llm/providers/openai.ts @@ -178,7 +178,7 @@ Use the web research data above to provide factual, data-driven insights. Refere for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) { try { - const response = await client.chat.completions.create({ + const response = await getClient().chat.completions.create({ model: "gpt-4o-mini", messages: [ { role: "system", content: SYSTEM_PROMPT },