duplicate tool call bugfix

This commit is contained in:
Dhanji R. Prasanna
2025-12-19 15:24:03 +11:00
parent faa6512b1f
commit b4f6da6bf2
2 changed files with 62 additions and 26 deletions

View File

@@ -607,6 +607,8 @@ impl AnthropicProvider {
debug!("Receiver dropped, stopping stream");
return accumulated_usage;
}
// Clear tool calls after sending to prevent duplicates at message_stop
current_tool_calls.clear();
}
}
"message_stop" => {