matthoffner commited on
Commit
66a7625
·
verified ·
1 Parent(s): e842b6d

Update app/api/chat/route.ts

Browse files
Files changed (1) hide show
  1. app/api/chat/route.ts +1 -1
app/api/chat/route.ts CHANGED
@@ -20,7 +20,7 @@ const functions: any[] = [
20
  export async function POST(req: Request) {
21
  const openai = new OpenAI({
22
  apiKey: process.env.OPENAI_API_KEY,
23
- baseURL: "https://api.mistral.ai"
24
  });
25
 
26
  const { messages, function_call } = await req.json()
 
20
  export async function POST(req: Request) {
21
  const openai = new OpenAI({
22
  apiKey: process.env.OPENAI_API_KEY,
23
+ baseURL: "https://api.mistral.ai/v1"
24
  });
25
 
26
  const { messages, function_call } = await req.json()