From a44918385a98b1622099887b8449080de4c327e5 Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Fri, 4 Apr 2025 01:41:42 +0000 Subject: [PATCH] fix: Enable tool call streaming in chat API route --- app/api/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 21a623d..94f53e9 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -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