fix: Disable tool call streaming in chat API route

This commit is contained in:
dayuan.jiang
2025-04-04 01:28:50 +00:00
parent 8f3c11e0e8
commit 2d042af02b

View File

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