llm-gateway(glm): pin reasoning effort to high (var-overridable) - #999
Open
aaronjmars wants to merge 1 commit into
Open
llm-gateway(glm): pin reasoning effort to high (var-overridable)#999aaronjmars wants to merge 1 commit into
aaronjmars wants to merge 1 commit into
Conversation
GLM-5.3/5.3-flash are forced-thinking models; depth is the reasoning_effort dial (5.3 series: low/high/max). Without a param the anthropic-compat endpoint leaves depth model-decided. Verified honored 2026-08-31 on api.z.ai/api/anthropic: thinking chars low 2.4k < high 15.3k < max 32.7k on a fixed hard prompt. Claude Code only sends effort for Claude model ids it recognizes, so CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1 forces it through for glm-* ids. GLM_REASONING_EFFORT repo var overrides (low|high|max); default high.
aaronjmars
added a commit
to aaronjmars/aeon-agent
that referenced
this pull request
Aug 31, 2026
CLAUDE_CODE_EFFORT_LEVEL=high + ALWAYS_ENABLE_EFFORT; GLM_REASONING_EFFORT var overrides (low|high|max). Canon PR aeonfun/aeon#999.
aaronjmars
added a commit
to aaronjmars/aeon-bd
that referenced
this pull request
Aug 31, 2026
CLAUDE_CODE_EFFORT_LEVEL=high + ALWAYS_ENABLE_EFFORT; GLM_REASONING_EFFORT var overrides (low|high|max). Canon PR aeonfun/aeon#999.
aaronjmars
added a commit
to aaronjmars/miroshark-aeon
that referenced
this pull request
Aug 31, 2026
CLAUDE_CODE_EFFORT_LEVEL=high + ALWAYS_ENABLE_EFFORT; GLM_REASONING_EFFORT var overrides (low|high|max). Canon PR aeonfun/aeon#999.
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.
What
scripts/llm-gateway.shglm arm now pins Claude Code reasoning effort tohigh:Why
GLM-5.3 / glm-5.3-flash are forced-thinking models (thinking cannot be disabled), and depth is the
reasoning_effortdial: the 5.3 series supportslow/high/maxonly. Without a param, the Anthropic-compat endpoint leaves depth model-decided (docs claim defaultmax, empirically it lands between high and max). This pins a deterministic fleet default.Verified honored on the live fleet endpoint
https://api.z.ai/api/anthropic(2026-08-31), fixed hard prompt, glm-5.3:CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1is required because Claude Code only sends the effort field for Claude model ids it recognizes; glm-* ids would silently drop it otherwise.Override
Per-instance repo var
GLM_REASONING_EFFORT(low/high/max) overrides the default. No new secrets; no new required vars.Verification
bash -nclean; source-test of the glm arm withGATEWAY=glmexportsCLAUDE_CODE_EFFORT_LEVEL=high(and=maxwith the var set).