Skip to content
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

Support claude 3.5 sonnet 20241022 #341

Merged
merged 4 commits into from
Oct 29, 2024

Conversation

idvorkin
Copy link
Contributor

@idvorkin idvorkin commented Oct 26, 2024

Add latest model strings, and updated examples.
Tested by running examples/claude.py

image

co-created w/Aider.

@lucianosrp
Copy link
Contributor

Nice one! Should we also allow "claude-3-5-sonnet-latest"? It should also work

@idvorkin
Copy link
Contributor Author

@lucianosrp - Good thinking - done!

@lucianosrp
Copy link
Contributor

Great! :)

examples/claude.py Outdated Show resolved Hide resolved
@@ -28,6 +28,8 @@ def register(client: anthropic.Anthropic):
('claude-3-sonnet-20240229', 'anthropic'),
('claude-3-haiku-20240307', 'anthropic'),
('claude-3-5-sonnet-20240620', 'anthropic'),
('claude-3-5-sonnet-20241022', 'anthropic'),
('claude-3-5-sonnet-latest', 'anthropic'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the api support claude-3-5-sonnet as a model identifier? We have gpt-4o with “latest” being implicit. We could reuse that pattern here easily if so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does not.

examples/claude.py Outdated Show resolved Hide resolved
src/ell/models/anthropic.py Show resolved Hide resolved
@MadcowD
Copy link
Owner

MadcowD commented Oct 29, 2024

Wait is latest real?

@MadcowD MadcowD merged commit ceacdbb into MadcowD:main Oct 29, 2024
@MadcowD
Copy link
Owner

MadcowD commented Oct 29, 2024

tysm!!! :)

@idvorkin
Copy link
Contributor Author

Wait is latest real?

Yup:https://docs.anthropic.com/en/docs/about-claude/models

image

@idvorkin idvorkin deleted the support-claude-3-5-sonnet-20241022 branch October 29, 2024 01:46
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.

4 participants