Skip to content

fix(llm): merge streamed tool calls by index - #1014

Open
LingYi-Liang wants to merge 1 commit into
modelscope:mainfrom
LingYi-Liang:fix/stream-tool-call-merge
Open

LingYi-Liang wants to merge 1 commit into
modelscope:mainfrom
LingYi-Liang:fix/stream-tool-call-merge

Conversation

@LingYi-Liang

@LingYi-Liang LingYi-Liang commented Oct 4, 2026 •

Copy link
Copy Markdown

Only the first tool call in each later chunk is currently merged, and interleaved calls don't accumulate correctly. Merge calls by index in both the legacy adapter and provider router, covering cases left out by #766.

Added 20 regression tests using local HTTP response replay through the normal SDK path. All 220 related offline tests pass with the fix.

@LingYi-Liang LingYi-Liang changed the title fix(llm): 修复流式工具调用的合并 fix(llm): merge streamed tool calls by index Oct 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant