Files
AstrBot/tests
Niansia 30820a48fa fix(provider): keep Anthropic tool calls whose streamed input is empty (#10432)
* fix(provider): keep Anthropic tool calls whose streamed input is empty

* fix(provider): keep the input from the Anthropic tool_use start event

The tool_use buffer always started from an empty dict, so a provider
that puts the arguments in the content_block_start event instead of
streaming them lost them. Start from that input and let streamed JSON
replace it only when there is any.
2026-10-08 22:01:50 +09:00
..