From 2d042af02b4beb7677c70a2aaf1d90059463cb34 Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Fri, 4 Apr 2025 01:28:50 +0000 Subject: [PATCH] fix: Disable 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 94f53e9..21a623d 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