fix: update Claude Sonnet 4.5 model name to claude-sonnet-4-5-20250929 #9436
+9
−9
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
This PR attempts to address Issue #9434 by updating the Claude Sonnet 4.5 model name format from
claude-sonnet-4.5toclaude-sonnet-4-5-20250929to improve URL compatibility.Changes
anthropic/claude-sonnet-4.5toanthropic/claude-sonnet-4-5-20250929Testing
src/api/providers/__tests__/openrouter.spec.tswebview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.tsContext
As reported in #9434, many URLs fail to recognize the dot notation format (
claude-sonnet-4.5). This change updates to the hyphen-separated format with date suffix (claude-sonnet-4-5-20250929) which is more widely compatible.Fixes #9434
Feedback and guidance are welcome!
Important
Update Claude Sonnet 4.5 model name to
claude-sonnet-4-5-20250929for improved URL compatibility.claude-sonnet-4.5toclaude-sonnet-4-5-20250929for URL compatibility.openRouterDefaultModelId,OPEN_ROUTER_PROMPT_CACHING_MODELS, andOPEN_ROUTER_REASONING_BUDGET_MODELSinopenrouter.ts.openrouter.spec.tsto use new model ID.useSelectedModel.spec.tsto use new model ID.This description was created by
for 154581c. You can customize this summary. It will automatically update as commits are pushed.