From 5fe57ac3d617039e53fc7dcdc3c70a27576ddd14 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Thu, 15 Jan 2026 00:11:44 +0100 Subject: [PATCH] changes --- app/api/chat/route.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index f65a62b..a2d9599 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -254,9 +254,11 @@ export async function POST(request: NextRequest) { controller.enqueue(encoder.encode(toolMarker)); // Add tool result to messages for next iteration + // Include tool_name so model knows which tool produced this result workingMessages.push({ role: 'tool', content: toolResult, + tool_name: toolCall.name, }); }