Skip to content

Conversation

@danhilse
Copy link

@danhilse danhilse commented Sep 1, 2025

Update Anthropics default to Claude Sonnet 4 (20250514).

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

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

Edit Code Review Bot Settings | Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant