fix: add glm-5.1 to model catalog#92
Open
bluzername wants to merge 1 commit into
Open
Conversation
|
@bluzername , the context window for glm5.1 is 204800
|
Contributor
|
I think you meant to tag @bluzername |
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.

Problem
When using
glm-5.1model via claudish, the status line shows wrong context usage (always 100%) becauseglm-5.1is not in the model catalog. It falls through to the genericglm-fallback which has 131k context window - probably not matching the real context window of the model.The claudish-bot comment on #90 already identified this: "glm-5.1 isn't in the model catalog yet — only glm-5 and glm-4.7 are listed."
Fix
Added
glm-5.1entry to the model catalog inmodel-catalog.ts:Placed before
glm-5-turboandglm-5entries (catalog is ordered by specificity, first match wins) soglm-5.1matches exactly instead of falling through to the shorterglm-5pattern.Set
supportsVision: truesame asglm-5since the 5.x series supports vision.Also added a test case in
e2e-model-catalog.test.tsverifying the new entry returns correct context window and vision support.Note
This addresses only part of #90 (the model catalog gap). The other parts (model name display from token file, and usage tracking for Z.AI provider) are separate issues that need investigation with
--debuglogs as the bot suggested.Ref #90