Skip to content

[Fix] NanoGPT Muse Spark fails during tool use - #1310

Draft
zoomote[bot] wants to merge 2 commits into
mainfrom
fix/nanogpt-muse-tool-calls-0h47xbcviys51
Draft

[Fix] NanoGPT Muse Spark fails during tool use#1310
zoomote[bot] wants to merge 2 commits into
mainfrom
fix/nanogpt-muse-tool-calls-0h47xbcviys51

Conversation

@zoomote

@zoomote zoomote Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

​Opened on behalf of @navedmerchant. Follow up by mentioning @roomote, in the web UI, or in Discord.

What changed

NanoGPT requests for meta/muse-spark-1.2-contributor now keep mixed tool-result and environment context in one contiguous tool message when replaying multi-turn history. A focused regression test reproduces repeated tool-call/result cycles from the diagnostics while confirming that parallel tool calls remain enabled.

Why this change was made

The diagnostics showed four valid, sequential tool calls before NanoGPT rejected the fifth response with Upstream emitted malformed tool call data that could not be repaired. Each tool result was followed by environment text that Zoo previously replayed as a separate user message, so this compatibility mitigation preserves that context on the matching tool message instead of changing unrelated parallel-call behavior.

Impact

Muse Spark 1.2 Contributor receives a more stable multi-turn tool history without losing environment context or parallel tool support. Other NanoGPT models keep their existing message conversion.

Related PRs

@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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