fix: use getClient() instead of undefined client in openai provider
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user