Repository navigation
0.10.18 C7 candidate: four PRs on dev - #2645
Closed
jonathan308 wants to merge 9 commits into
Closed
jonathan308 wants to merge 9 commits into
jonathan308 wants to merge 9 commits into
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.
…schemas Moves the SDK pin from 20fa3d540d to 689f2f00bf (Layr-Labs/mlx-swift-lm#535), which reads a tool-call argument written as a JSON literal as that literal when its schema admits the literal and rejects the text as a string, including under not, if/then/else, unions and untyped schemas.
Inkling 2 Mini sometimes opens a text message where a call's header
belongs: <|content_text|>NAME<|content_invoke_tool_json|>{...}. Markers
inside an answer are its text, so the lexer returned the frame as answer
text: no call for a single call, one call fewer in a parallel response.
An answer's first bytes are now held while they can still be a function
name (letters, digits, _ or -, up to 64). If the marker follows, the
message is that call with the name as its header, checked against the
body's name as a header is; any other byte releases the held bytes as
the answer's text. Calls stay text when the request declares no tools.
Moves the SDK pin from 689f2f00bf to cba8c22177, the merge commit that landed Layr-Labs/mlx-swift-lm#535 on main. Its tree is #535's tree on main 52f81662a6.
…d tool-call arguments with the caller's declarations
…draft calls before a second thought close as reasoning
…call frame that opens an answer message as the call
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
Superseded by #2646. |
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 four PRs todev850a88f7a1. #2640 moves the one SDK pin,libs/mlx-swift-lm20fa3d540d→cba8c22177, which is Layr-Labs/mlx-swift-lm#535 landed on SDKmainby merge commitcba8c22177.c9961b9afc8257acc2df: SDK pin with JSON literals under combinator argument schemas. No conflictc8ee066f32ba07833d14: tool-call arguments are read with the caller's declarations. No conflict3c4a3a6bd8484e4d4917: Nemotron 3.5 draft calls before a second thought close stay reasoning. No conflict06380248983d8630865c: an Inkling 2 call frame that opens an answer message is read as the call. No conflictTest plan
git merge-treeresult. The diff fromdevto this head is exactly the union of the four PRs' changes.Components touched
AI usage
accurately describes the code changes.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.