Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix: add /v1/ prefix to AI proxy chat completions path' (#171) from fix/ai-proxy-v1-path into main

scott 0c6765bf 93e31ae3

+1 -1
+1 -1
server/index.ts
··· 413 413 const AI_GATEWAY_URL = process.env.AI_GATEWAY_URL || 'https://ai.lobster-hake.ts.net'; 414 414 415 415 app.post('/api/ai/chat/completions', async (req: Request, res: Response) => { 416 - const gatewayUrl = `${AI_GATEWAY_URL.replace(/\/$/, '')}/chat/completions`; 416 + const gatewayUrl = `${AI_GATEWAY_URL.replace(/\/$/, '')}/v1/chat/completions`; 417 417 try { 418 418 const upstream = await fetch(gatewayUrl, { 419 419 method: 'POST',