feat(anthropic): update default cloud model to claude-sonnet-4-20250514#528
feat(anthropic): update default cloud model to claude-sonnet-4-20250514#528danhilse wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Greptile Summary
This PR updates the default Anthropic model in the application from claude-3-5-sonnet-latest to claude-sonnet-4-20250514. The change is made in the shared/defaultLLMs.ts file, which serves as a configuration module that defines default LLM configurations for various providers including OpenAI and Anthropic.
The specific change replaces the model name in the anthropicDefaultLLMs array while maintaining the same context length of 180,000 tokens and API name. This upgrade moves the application to Claude Sonnet 4, which is Anthropic's next-generation model offering improved coding, reasoning, and instruction-following capabilities compared to Claude 3.5 Sonnet.
The change follows best practices by using a specific model version (claude-sonnet-4-20250514) rather than an alias like "latest", which ensures consistent behavior in production environments. This configuration change integrates seamlessly with the existing LLM management system in the codebase, as it maintains the same LLMConfig interface structure that includes contextLength, modelName, and apiName properties.
Confidence score: 5/5
- This PR is safe to merge with minimal risk
- Score reflects a straightforward model upgrade with no breaking changes to the existing API structure
- No files require special attention
1 file reviewed, no comments
Update Anthropics default to Claude Sonnet 4 (20250514).