Spaces:
Sleeping
Sleeping
Update app/api/chat/route.ts
Browse files- 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 |
})
|