Replace Sonnet 3.7 with Sonnet 4.6 and refactor model constants to StrEnum#2269
Merged
hiroshinishio merged 1 commit intomainfrom Feb 18, 2026
Merged
Replace Sonnet 3.7 with Sonnet 4.6 and refactor model constants to StrEnum#2269hiroshinishio merged 1 commit intomainfrom
hiroshinishio merged 1 commit intomainfrom
Conversation
…s to ClaudeModelId StrEnum
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.
Summary
claude-3-7-sonnet-latest) from model chain and pricingclaude-sonnet-4-6) at $3/$15 per MTok (input/output)CLAUDE_OPUS_4_6,CLAUDE_SONNET_4_5, etc.) into a singleClaudeModelIdStrEnum - no more duplicated string valuesmodel_idfromchat_with_claudeandtrim_messages_to_token_limit- callers must now pass it explicitlychat_with_agent.model_idtype fromstr | NonetoClaudeModelId | NoneSocial Media Post (GitAuto)
GitAuto now runs on Opus 4.6 as the primary model with Sonnet 4.6 as the first fallback. All model constants live in a single StrEnum - adding a new model is one line in one place.
Social Media Post (Wes)
Switched our primary model to Opus 4.6 and added Sonnet 4.6 as fallback. Fallback chain: Opus 4.6 -> Sonnet 4.6 -> Sonnet 4.5 -> Sonnet 4.0.