fix: Enable tool call streaming in chat API route

This commit is contained in:
dayuan.jiang
2025-04-04 01:41:42 +00:00
parent 2d042af02b
commit a44918385a

View File

@@ -59,7 +59,7 @@ ${lastMessage.content}
// model: openrouter("google/gemini-2.0-flash-exp:free"),
model: bedrock('anthropic.claude-3-5-sonnet-20241022-v2:0'),
// model: openai("gpt-4o"),
// toolCallStreaming: true,
toolCallStreaming: true,
messages: enhancedMessages,
tools: {
// Client-side tool that will be executed on the client