Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Nov 20, 2025

Summary

This PR attempts to address Issue #9434 by updating the Claude Sonnet 4.5 model name format from claude-sonnet-4.5 to claude-sonnet-4-5-20250929 to improve URL compatibility.

Changes

  • Updated the OpenRouter default model ID from anthropic/claude-sonnet-4.5 to anthropic/claude-sonnet-4-5-20250929
  • Updated model references in the prompt caching and reasoning budget model lists
  • Updated all corresponding test files to use the new model ID format

Testing

  • ✅ All tests pass for src/api/providers/__tests__/openrouter.spec.ts
  • ✅ All tests pass for webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts

Context

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-20250929 for improved URL compatibility.

  • Behavior:
    • Update model name from claude-sonnet-4.5 to claude-sonnet-4-5-20250929 for URL compatibility.
    • Affects openRouterDefaultModelId, OPEN_ROUTER_PROMPT_CACHING_MODELS, and OPEN_ROUTER_REASONING_BUDGET_MODELS in openrouter.ts.
  • Testing:
    • Update tests in openrouter.spec.ts to use new model ID.
    • Update tests in useSelectedModel.spec.ts to use new model ID.
  • Context:

This description was created by Ellipsis for 154581c. You can customize this summary. It will automatically update as commits are pushed.

- Changed model ID from claude-sonnet-4.5 to claude-sonnet-4-5-20250929 in OpenRouter provider
- Updated all references in test files to match new model ID format
- Fixes compatibility issues with URLs that do not recognize the dot notation

Fixes #9434
@roomote roomote bot requested review from cte, jr and mrubens as code owners November 20, 2025 16:56
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 20, 2025
@dosubot dosubot bot added the bug Something isn't working label Nov 20, 2025
@roomote
Copy link
Contributor Author

roomote bot commented Nov 20, 2025

Rooviewer Clock   See task on Roo Cloud

Review completed. No issues found - changes look good!

The PR successfully updates the OpenRouter Claude Sonnet 4.5 model name from claude-sonnet-4.5 to claude-sonnet-4-5-20250929 to improve URL compatibility. All references have been properly updated across the codebase and test files.

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@roomote roomote bot mentioned this pull request Nov 20, 2025
2 tasks
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] claude-sonnet-4.5

3 participants