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

Remove retired models and add new Haiku-3.5 model in Anthropic #1092

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

srdas
Copy link
Collaborator

@srdas srdas commented Nov 6, 2024

Fixes #1071

Removed all deprecated models as listed here: https://docs.anthropic.com/en/docs/resources/model-deprecations.

This makes the AnthropicProvider class redundant, so it is now removed. The corresponding entry in pyproject.toml is also deleted.

The class ChatAnthropicProvider is updated to include the new Claude-3.5-Haikumodel, and the function to check for API key exception has been added.
image

Claude-3.5-haiku also added to AWS Bedrock Chat models - tested to ensure the models work.
image

…Provider` class, add new models

Removed all deprecated models as listed here: https://docs.anthropic.com/en/docs/resources/model-deprecations.

This makes the `AnthropicProvider` class redundant, so it is now removed. The corresponding entry in `pyproject.toml` is also deleted.

The class `ChatAnthropicProvider` is updated to include the new `Claude-3.5-Haiku`model, and the function to check for  API key exception has been added.  The older version of `Claude-3.5-sonnet` has also been removed.
@srdas srdas added the enhancement New feature or request label Nov 6, 2024
@srdas srdas requested a review from dlqqq November 6, 2024 17:53
@dlqqq dlqqq changed the title Updated anthropic.py to remove deprecated models, remove AnthropicProvider class, and add new Haiku-3.5 model Remove deprecated models and add new Haiku-3.5 model in Anthropic Nov 6, 2024
@dlqqq dlqqq changed the title Remove deprecated models and add new Haiku-3.5 model in Anthropic Remove retired models and add new Haiku-3.5 model in Anthropic Nov 6, 2024
Copy link
Member

@dlqqq dlqqq left a comment

Choose a reason for hiding this comment

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

@srdas Awesome, thank you!

@srdas srdas merged commit 55ca34e into jupyterlab:main Nov 6, 2024
15 checks passed
@srdas
Copy link
Collaborator Author

srdas commented Nov 6, 2024

@meeseeksdev please backport to v3-dev

meeseeksmachine pushed a commit to meeseeksmachine/jupyter-ai that referenced this pull request Nov 6, 2024
srdas added a commit that referenced this pull request Nov 6, 2024
@dlqqq dlqqq mentioned this pull request Nov 6, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove AnthropicProvider on Nov 6, 2024
2 participants