Skip to content

Commit f44de24

Browse files
lroollegregnr
andauthored
Update apps/postgres-new/app/api/chat/route.ts
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
1 parent 0b89196 commit f44de24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/postgres-new/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const chatModel = process.env.OPENAI_MODEL || 'gpt-4o-2024-08-06'
1717
// Configure OpenAI client with custom base URL
1818
const openai = createOpenAI({
1919
apiKey: process.env.OPENAI_API_KEY,
20-
baseURL: process.env.OPENAI_API_BASE || 'https://api.openai.com/v1',
20+
baseURL: process.env.OPENAI_API_BASE ?? 'https://api.openai.com/v1',
2121
compatibility: 'strict',
2222
})
2323

0 commit comments

Comments
 (0)