-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Claude Sonnet 4 and Claude Opus 4 models with thinking variants #3844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -201,8 +201,8 @@ export const parseOpenRouterModel = ({ | |||
// and we want to use 128k. | |||
if (id.startsWith("anthropic/claude-3.7-sonnet")) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
@shariqriazz - Mind if we use this a the official Claude 4 PR? |
not at all we good :) |
Hey! I think the vertex models are missing the @ I just tested it and it doesn't work - @mrubens @shariqriazz Update: tried locally with @ and it works now with:
|
Thank you! #3849 |
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
andapi.ts
.claude-sonnet-4-20250514
andclaude-opus-4-20250514
models withthinking
variants toanthropicModels
,bedrockModels
, andvertexModels
inapi.ts
.AnthropicHandler
inanthropic.ts
to handle new models and theirthinking
variants.thinking-128k
variants increateMessage()
andgetModel()
methods.PROMPT_CACHING_MODELS
andCOMPUTER_USE_MODELS
sets inapi.ts
to include new models.This description was created by
for 83beb49. You can customize this summary. It will automatically update as commits are pushed.