Skip to content

added support for claude 4 #816

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lizziescoder
Copy link

why

what changed

test plan

Copy link

changeset-bot bot commented Jun 17, 2025

⚠️ No Changeset found

Latest commit: cee5427

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@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.

PR Summary

Added support for Claude 4 (claude-sonnet-4-20250514) model in the agent provider system.

  • Added new model mapping in lib/agent/AgentProvider.ts to support Claude 4 with Anthropic provider type

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@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.

PR Summary

Expanded Claude 4 integration across the codebase with model identifier 'claude-sonnet-4-20250514'.

  • Added new model to types/model.ts AvailableModelSchema enum for type safety
  • Mapped Claude 4 model to 'anthropic' provider in lib/llm/LLMProvider.ts modelToProviderMap
  • Needs documentation about Claude 4's capabilities and compatibility in the implementation

3 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

@@ -21,6 +21,7 @@ export const AvailableModelSchema = z.enum([
"claude-3-5-sonnet-20240620",
"claude-3-7-sonnet-latest",
"claude-3-7-sonnet-20250219",
"claude-sonnet-4-20250514",
Copy link
Contributor

Choose a reason for hiding this comment

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

style: The model ID format 'claude-sonnet-4-20250514' deviates from previous Claude models like 'claude-3-7-sonnet-20250219'. Consider aligning the naming convention for consistency

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