Repository navigation
0.10.18 C7 candidate: two PRs on dev - #2647
Merged
Merged
Conversation
The call parser converted argument text with the render types the ingress repair writes for the chat template, so a union, `not` or if/then/else parameter read as its first or default member: under `oneOf: [integer, number]` the text "2.5" stayed a string, which the declaration refuses. The parser and the Qwen strict grammar's reading now use each tool's parameters as sent (`Prepared.argumentTools`, `ToolArgumentSchemas`), with a typeless enum/const node typed by its own values, which accepts the same instances. The template still renders the repaired declarations; auto validation already read the declarations as sent. GLM is unchanged. Tests cover the tool-call schema fuzz grid constructs: the reading accepts exactly the declared instances, the rendered parameter keeps its render type, and Qwen 3.5 calls parse to arguments their declaration accepts.
With reasoning on, Lightning sometimes closes its thought early to sketch the calls it plans, keeps reasoning in plain text, closes the thought again and then writes the real calls. The splitter absorbs the second </think> as a stray close and keeps everything before it as content, so the sketched frames were parsed as calls too: two parallel calls came back as four. On the Nemotron route (absorbStrayThinkClose with the nemotron parser), the splitter now holds content from the first tool frame after a closed thought. A stray </think> turns the held text into reasoning, so its frames never become calls; at the end of the output the held text is content as before. Calls are not deduplicated by value, since identical parallel calls can be intended.
…d tool-call arguments with the caller's declarations
…draft calls before a second thought close as reasoning
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
5 of 8 tasks
5 of 6 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the 0.10.18 C7 landing PR. Merge it into
devwith a merge commit. One branch adds two PRs todev850a88f7a1. No PR moves the SDK pin;libs/mlx-swift-lmstays20fa3d540d.360a5d42afba07833d14: tool-call arguments are read with the caller's declarations. No conflict9bd3e01f7d484e4d4917: Nemotron 3.5 draft calls before a second thought close stay reasoning. No conflictTest plan
git merge-treeresult. The diff fromdevto this head is exactly the union of the three PRs' changes.Components touched
provider-swift (Swift CLI)
docs / changelog
AI usage
accurately describes the code changes.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.