feat: add new claude models#241
Conversation
|
i might miss smth from the docs, sorry, just got it: https://docs.anthropic.com/en/docs/about-claude/models/migrating-to-claude-4 |
|
Let's have Claude review this. |
There was a problem hiding this comment.
Pull Request Overview
Adds support for the new Claude 4 Sonnet and Opus models by extending the ModelName enum and updating the Anthropic provider’s default and supported models.
- Introduce
Claude_4_SonnetandClaude_4_OpusinModelName - Set
Claude_4_Sonnetas the default for Anthropic and expand its models list
Comments suppressed due to low confidence (1)
src/providers/index.ts:18
- The string literal here reverses the established pattern (
claude-<version>-<name>-<date>). Consider renaming to'claude-4-sonnet-20250514'(and similarly for Opus) to keep consistency with other enum entries.
Claude_4_Sonnet = 'claude-sonnet-4-20250514',
|
@claude review this PR |
|
Claude finished @evgenydmitriev's task —— View job Code Review: feat: add new claude modelsTodo List:
Review SummaryI've reviewed the changes in ❌ Critical Issues1. Duplicate Model Entry (Line 47) models: [ModelName.Claude_4_Opus, ModelName.Claude_3_7_Sonnet_20250219, ModelName.Claude_3_5_Sonnet_20241022, ModelName.Claude_3_7_Sonnet_20250219, ModelName.Claude_3_7_Sonnet_20250219_Thinking],
2. Missing Default Model (Line 47) ✅ Recommended FixUpdate line 47 to: models: [ModelName.Claude_4_Opus, ModelName.Claude_4_Sonnet, ModelName.Claude_3_7_Sonnet_20250219, ModelName.Claude_3_5_Sonnet_20241022, ModelName.Claude_3_7_Sonnet_20250219_Thinking],✅ Positive Changes
🔍 Additional Considerations
Status: ❌ Changes Requested - Please fix the duplicate entry and add the missing |
|
@claude implement needed changes:
|
|
Claude finished @evgenydmitriev's task —— View job ✅ Implementation CompleteTodo List:
Summary of ChangesI've successfully implemented all the requested changes:
Files modified:
Commit: The PR is now ready for review with only Claude 4 models available for the Anthropic provider. |
- Set Claude_4_Opus as default Anthropic model - Remove duplicate model entries - Keep only Claude 4 models (Claude_4_Opus, Claude_4_Sonnet) - Remove legacy Claude 3 model enum entries - Update README.md documentation to reflect new model list Co-authored-by: evgenydmitriev <evgenydmitriev@users.noreply.github.com>
|
1712n/dedup-service#7 (comment) it looks like the fallback model was used instead of claude-opus-4-20250514 |
https://www.anthropic.com/news/claude-4