We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b89196 commit f44de24Copy full SHA for f44de24
apps/postgres-new/app/api/chat/route.ts
@@ -17,7 +17,7 @@ const chatModel = process.env.OPENAI_MODEL || 'gpt-4o-2024-08-06'
17
// Configure OpenAI client with custom base URL
18
const openai = createOpenAI({
19
apiKey: process.env.OPENAI_API_KEY,
20
- baseURL: process.env.OPENAI_API_BASE || 'https://api.openai.com/v1',
+ baseURL: process.env.OPENAI_API_BASE ?? 'https://api.openai.com/v1',
21
compatibility: 'strict',
22
})
23
0 commit comments