Skip to content

Conversation

@shariqriazz
Copy link
Contributor

@shariqriazz shariqriazz commented May 22, 2025

adds claude 4 sonnet / opus with thinking variant to anthropic, vertex, bedrock


Important

Add Claude Sonnet 4 and Claude Opus 4 models with thinking variants to the system, updating anthropic.ts and api.ts.

  • Models Added:
    • Added claude-sonnet-4-20250514 and claude-opus-4-20250514 models with thinking variants to anthropicModels, bedrockModels, and vertexModels in api.ts.
  • Behavior:
    • Updated AnthropicHandler in anthropic.ts to handle new models and their thinking variants.
    • Added support for thinking-128k variants in createMessage() and getModel() methods.
  • Misc:
    • Updated PROMPT_CACHING_MODELS and COMPUTER_USE_MODELS sets in api.ts to include new models.

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

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this isn't quite right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry i am too sleep deprived idk how i managed to even close this lol thanks @cte

@cte cte reopened this May 22, 2025
@github-project-automation github-project-automation bot moved this from Done to New in Roo Code Roadmap May 22, 2025
@github-project-automation github-project-automation bot moved this from Done to New in Roo Code Roadmap May 22, 2025
@cte
Copy link
Collaborator

cte commented May 22, 2025

@shariqriazz - Mind if we use this a the official Claude 4 PR?

@shariqriazz
Copy link
Contributor Author

@shariqriazz - Mind if we use this a the official Claude 4 PR?

not at all we good :)

@cte cte merged commit 8a8fadd into RooCodeInc:main May 22, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 22, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 22, 2025
@lupuletic
Copy link
Contributor

lupuletic commented May 22, 2025

Hey! I think the vertex models are missing the @

I just tested it and it doesn't work - @mrubens @shariqriazz
image
image

Update: tried locally with @ and it works now with:

  • claude-sonnet-4@20250514:thinking
  • claude-opus-4@20250514:thinking
image

@mrubens
Copy link
Collaborator

mrubens commented May 22, 2025

Thank you! #3849

@shariqriazz shariqriazz deleted the add-sonnet4 branch June 21, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants