mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-04 16:13:23 +00:00
When an executed tool call raises, append the assistant message carrying the tool_calls before the tool error result, mirroring the success path. Previously only the tool result was appended, leaving a tool message with no preceding tool_calls parent, which made the next provider completion reject the request. Every tool_call id in a batch is now answered even when some calls fail.