Repository navigation
fix(anthropic): update retired/retiring default model to claude-sonnet-5-5 in all runtimes - #597
Open
alexcastgonz (pcbeingused333) wants to merge 1 commit into
Conversation
…t-5-5 in all runtimes A .prompty without model.id fell back to a hard-coded Sonnet id in each runtime: the C# executor used claude-sonnet-4-20250514 (retired 2026-06-15) and Python/TypeScript used claude-sonnet-4-5-20250929 (retires 2026-11-30). Use the current claude-sonnet-5-5 everywhere and pin the fallback with a test in each runtime. The C# test replaces a tautological one that never called the executor.
This branch has not been deployed
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.
No linked issue (found while checking Anthropic model retirements).
Cause. When a
.promptyfile for the Anthropic provider has nomodel.id, each runtime falls back to a hard-coded Sonnet id that Anthropic has retired or is retiring (see the model deprecations page on platform.claude.com):AnthropicExecutor.BuildRequestBody):claude-sonnet-4-20250514, already retired (Claude Sonnet 4, 2026-06-15), so such prompts fail today._build_chat_args) and TypeScript (buildChatArgs):claude-sonnet-4-5-20250929, which retires on 2026-11-30.Fix. Use
claude-sonnet-5-5(the Claude API ID of Sonnet 5.5 on Anthropic's live models overview) as the fallback in all three runtimes. The Anthropic READMEs (C#, TypeScript, Rust) now use current ids in their examples, and the C# supported-models list drops the retired Claude 3 entries.Tests. One test per runtime builds the request args with no
model.idand asserts the fallback (red before, green after):TestBuildChatArgs::test_default_model_when_id_missing(pytest), "falls back to the current default model when model.id is missing" (vitest), andBuildRequestBody_WithoutModelId_UsesCurrentDefaultModel(xUnit), which replaces the previousDefaultModel_IsClaudetest that only asserted on a local expression and never exercised the executor. The Anthropic test projects pass.This PR was prepared with the help of an AI assistant (Claude Code), and the author is responsible for the change.