fix(models): split GLM 5.2 context presets#3137
Open
sarahwooders wants to merge 2 commits into
Open
Conversation
Make the default GLM-5.2 preset use the observed 200K-class limit and add an explicit 1M preset so long context remains opt-in. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <[email protected]> See [trace](https://app.letta.com/chat/agent-4140c4b5-f32e-475c-9573-bcfd9446ca7b?conversation=conv-c40c855b-85f3-42bd-a370-7a8252bf6b5b). Resume conversation with `letta --conv conv-c40c855b-85f3-42bd-a370-7a8252bf6b5b`
Keep both GLM-5.2 presets tied to the API-backed model handle and distinguish the long-context option only through its preset id and context_window override. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <[email protected]> See [trace](https://app.letta.com/chat/agent-4140c4b5-f32e-475c-9573-bcfd9446ca7b?conversation=conv-c40c855b-85f3-42bd-a370-7a8252bf6b5b). Resume conversation with `letta --conv conv-c40c855b-85f3-42bd-a370-7a8252bf6b5b`
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.
Makes the default
zai/glm-5.2preset use the observed 200K-class limit and adds an explicitzai/glm-5.2[1m]preset for opt-in long context. This avoids suppressing compaction for the default direct GLM path while keeping the 1M variant available.Validated with:
bun run check