fix: use getClient() instead of undefined client in openai provider

This commit is contained in:
Christopher Mayor
2026-04-26 16:55:59 -07:00
parent d9ed1586cc
commit 78e1c74fa3

View File

@@ -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++) { for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) {
try { try {
const response = await client.chat.completions.create({ const response = await getClient().chat.completions.create({
model: "gpt-4o-mini", model: "gpt-4o-mini",
messages: [ messages: [
{ role: "system", content: SYSTEM_PROMPT }, { role: "system", content: SYSTEM_PROMPT },