yetone
|
f2c7536d7d
|
gateway: a relayed WorkBuddy reply is one block in Qoder again, not a word to a line (ARNO on Discord: workbuddy provider断句出错) — copilot.tencent.com sends "tool_calls": [] on every delta, text too, and Qoder's stream adapter (qodercli 1.1.65) tests delta.tool_calls for being there rather than for holding a call, so it closed its text block on each chunk and opened a new one for the next piece of text. chatTidy, which already mends that stream's empty reasoning_content, finish_reason and tool name, now leaves an empty tool_calls list out; a real call's list goes on as it came. Translated to Messages or Responses the stream was already one text block (the decoder reads an empty list as no call). TestChatRelayDropsEmptyToolCalls fails without the change; TestChatTidyKeepsToolCalls, TestWorkBuddyTextIsOneBlock guard the rest. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
|
2026-10-01 19:38:35 +08:00 |
|