Skip to content

Commit

Permalink
Add claude sonnet 3.5 models (#847)
Browse files Browse the repository at this point in the history
* Update `/clear' to use `Handler`

Builds the message in the help handler and then uses it after clearing chat.

* Add claude-3.5-sonnet

Anthropic's latest model, released 20th June 2024, added.

* Add claude3.5 sonnet

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* reverting clear changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update anthropic.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
srdas and pre-commit-ci[bot] authored Jun 20, 2024
1 parent 90a4c2d commit bc39447
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def is_api_key_exc(cls, e: Exception):

class ChatAnthropicProvider(
BaseProvider, ChatAnthropic
): # https://docs.anthropic.com/claude/docs/models-overview
): # https://docs.anthropic.com/en/docs/about-claude/models
id = "anthropic-chat"
name = "ChatAnthropic"
models = [
Expand All @@ -48,6 +48,7 @@ class ChatAnthropicProvider(
"claude-3-opus-20240229",
"claude-3-sonnet-20240229",
"claude-3-haiku-20240307",
"claude-3-5-sonnet-20240620",
]
model_id_key = "model"
pypi_package_deps = ["anthropic"]
Expand Down
1 change: 1 addition & 0 deletions packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ class BedrockChatProvider(BaseProvider, BedrockChat):
"anthropic.claude-3-sonnet-20240229-v1:0",
"anthropic.claude-3-haiku-20240307-v1:0",
"anthropic.claude-3-opus-20240229-v1:0",
"anthropic.claude-3-5-sonnet-20240620-v1:0",
]
model_id_key = "model_id"
pypi_package_deps = ["boto3"]
Expand Down

0 comments on commit bc39447

Please sign in to comment.