Skip to content

fix: honor HTTP chat max_tokens limits - #2

Open
kimminhyun-ai wants to merge 1 commit into
mainfrom
year3/m5-oss-tools-integration
Open

fix: honor HTTP chat max_tokens limits#2
kimminhyun-ai wants to merge 1 commit into
mainfrom
year3/m5-oss-tools-integration

Conversation

@kimminhyun-ai

Copy link
Copy Markdown
Contributor

Map the validated HTTP max_tokens field to the runtime maxTokens option. Previously the request silently used the runtime default of 200. Regression coverage checks 1, 128, 1024 and default 200 for both base and patched calls. Docker typecheck and all 18 guard API tests pass against upstream node source with core commit 701fb58577d118f9edc5d66364f6eb7830bb5cca. The corresponding fix on the local experiment runtime was also verified against the real Qwen model: a 128-token request produced 128 base and 79 patched completion tokens. Semantic benchmark correctness still failed; this PR makes no model accuracy claim.

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.

2 participants