This commit is contained in:
Zacharias-Brohn
2026-01-15 00:11:44 +01:00
parent 8365dfbce2
commit 5fe57ac3d6
+2
View File
@@ -254,9 +254,11 @@ export async function POST(request: NextRequest) {
controller.enqueue(encoder.encode(toolMarker)); controller.enqueue(encoder.encode(toolMarker));
// Add tool result to messages for next iteration // Add tool result to messages for next iteration
// Include tool_name so model knows which tool produced this result
workingMessages.push({ workingMessages.push({
role: 'tool', role: 'tool',
content: toolResult, content: toolResult,
tool_name: toolCall.name,
}); });
} }