matthoffner commited on
Commit
3bee3c0
·
verified ·
1 Parent(s): e861798

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
@@ -33,7 +33,7 @@ export async function POST(req: Request) {
33
  // map "assistant" to "agent" for Mistral:
34
  role: message.role === 'assistant' ? 'agent' : 'user',
35
  content: message.content,
36
- })),
37
  functions,
38
  function_call
39
  })
 
33
  // map "assistant" to "agent" for Mistral:
34
  role: message.role === 'assistant' ? 'agent' : 'user',
35
  content: message.content,
36
+ }) as any),
37
  functions,
38
  function_call
39
  })