-
Notifications
You must be signed in to change notification settings - Fork 3
fix(providers): lower GLM custom provider context #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zerob13
wants to merge
1
commit into
dev
Choose a base branch
from
codex/glm-custom-context-200000
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
What is the maximum context length for Zhipu glm-5.1 and glm-5 models?💡 Result:
As of June 2, 2026, both the Zhipu GLM-5 and GLM-5.1 models support a context window of 200,000 (200K) tokens [1][2][3]. While some technical documentation or specific API implementations (such as the NVIDIA NIM reference for GLM-5.1) may list 131,072 tokens for specific integration environments [4], the models' native architecture is designed for and widely recognized as supporting a 200K-token context window [5][1][6][3]. This capacity is supported by the models' use of Sparse Attention mechanisms (specifically DeepSeek Sparse Attention) to maintain coherence across extended sequences, which is a key feature for their intended use in long-horizon agentic and engineering tasks [1][6][3].
Citations:
🌐 Web query:
What is the maximum context length for Zhipu glm-5v-turbo and glm-4.7 models?💡 Result:
Both the Zhipu GLM-4.7 and GLM-5V-Turbo models support a maximum context window of approximately 203,000 tokens (often cited in documentation as 200K tokens) [1][2][3][4][5][6]. Specifically: - GLM-4.7: Features a context window of 203,000 tokens [2][3]. - GLM-5V-Turbo: Features a context window of 202,752 tokens [7][6]. For both models, the maximum output token limit is generally 128,000 to 131,072 tokens [3][8][7][5][6].
Citations:
Align
contextLengthvalues with Zhipu platform specs.manual-templates/custom-provider-overrides.json:glm-5.1(line 846) andglm-5(line 878)contextLength: 200000matches the current Zhipu docs.glm-5v-turbo(line 910) andglm-4.7(line 942) should not remain204800; Zhipu docs list ~202,752forglm-5v-turboand ~203,000forglm-4.7—update these values or document why the override intentionally differs.🤖 Prompt for AI Agents