fix(metadata): add qwen3.6-plus 1M context length (#27008) - #27057
Closed
alaamohanad169-ship-it wants to merge 2 commits into
Closed
fix(metadata): add qwen3.6-plus 1M context length (#27008)#27057alaamohanad169-ship-it wants to merge 2 commits into
alaamohanad169-ship-it wants to merge 2 commits into
Conversation
Changes the enriched text format in _enrich_message_with_vision from bracket-heavy format to a more natural conversational format with 📷 emoji prefix and regular punctuation. This helps non-vision models like MiniMax M2.7 better understand the vision analysis results. Closes #25900
qwen3.6-plus was missing from DEFAULT_CONTEXT_LENGTHS, causing it to fall back to the generic qwen 131072 entry. The actual context window is 1048576 tokens (1M) per DashScope/Alibaba docs. This caused: - Premature context compression in long sessions - Degraded reasoning quality - Misleading context mismatch warnings Fix: add explicit qwen3.6-plus: 1048576 entry before the generic qwen fallback in agent/model_metadata.py. Ref: #27008
alaamohanad169-ship-it
force-pushed
the
fix/qwen3.6-plus-context-length
branch
from
May 16, 2026 19:19
331c205 to
fbdfa18
Compare
Collaborator
|
Duplicate of #27068 which makes the same Note: this PR also modifies See also: #6599 (broader qwen3.6-plus model catalog addition, open). |
Contributor
Author
|
Closing as duplicate of #27068, which implements the same |
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.
Description
Adds
qwen3.6-plustoDEFAULT_CONTEXT_LENGTHSinagent/model_metadata.pywith the correct 1M (1,048,576) context window.Previously,
qwen3.6-pluswas missing from the dict and fell back to the genericqwen: 131072entry, causing:Changes
agent/model_metadata.py: Added"qwen3.6-plus": 1048576before the genericqwenfallbackTesting
qwencatch-all (substring matching is longest-first, soqwen3.6-plusmatches beforeqwen)Related
Closes #27008