Repository navigation
fix(agents): Claude Code sends no Anthropic beta parameters for a model that isn't Claude - #626
Merged
andrewpark-scaleai merged 1 commit intoNov 12, 2026
Conversation
…el that isn't Claude
andrewpark-scaleai
enabled auto-merge (squash)
November 11, 2026 23:15
AhmedArifK
approved these changes
Nov 12, 2026
earakely-scale
approved these changes
Nov 12, 2026
andrewpark-scaleai
deleted the
andrew.park/claude-code-non-claude-betas
branch
November 12, 2026 20:02
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.
Why
Claude Code run on a model that isn't Claude fails its first turn. On 11-11, starting about 22:00 UTC, every
task-snapshot-hg4-with-gsuite-bundle-1174-*-glm-tsand-ds-tsrun ended at its prompt step with:The CLI sends Anthropic's beta parameters whatever the model is. LiteLLM forwards a Fireworks model's request to Fireworks and refuses the parameters that provider doesn't take. The Claude Code 2.1.322 bump didn't cause this, because 2.1.280 sends
context_managementto a Fireworks model too. What's new is tasks running Claude Code on Fireworks models.What
When the run's model isn't a Claude model (its name doesn't contain
claude),cli_envsetsCLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1. That stops the CLI sendingcontext_managementand the other experimental betas. A value already set in the environment wins. Claude models keep every beta they get today.Validation
I ran the real
claude2.1.322 against a local server that records each request, onfireworks_ai/glm-5p3-flash:context_managementin the bodyanthropic-betacontext-management-2025-06-27cli_envwith this changeclaude-code-20250219,interleaved-thinking-2025-05-14,effort-2025-11-24claude-sonnet-5-5)New unit tests cover a Fireworks model, a Claude model, a Bedrock Claude model, and an explicit setting winning. The Fireworks case fails on main.
tst/unit/agents/claude_code: 280 passed.Not verified: a run against the real LiteLLM proxy.


Confidence Score: 5/5
The PR appears safe to merge.Summary
Sets
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1for non-Claude models using a configured endpoint.No actionable issues found. Request behavior against the real LiteLLM proxy remains unverified, as the author notes.
Reviews (1) · Last reviewed commit: "fix(agents): Claude Code sends no Anthro..." · Reviewed by Greptile