Skip to content

Commit

Permalink
Upgrade Anthropic and related minor changes (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
zechengz committed Jun 13, 2024
1 parent 27cfb19 commit a170ce1
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 8 deletions.
2 changes: 1 addition & 1 deletion camel/configs/anthropic_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from dataclasses import asdict, dataclass

from anthropic._types import NOT_GIVEN, NotGiven
from anthropic import NOT_GIVEN, NotGiven

from camel.configs.base_config import BaseConfig

Expand Down
3 changes: 1 addition & 2 deletions camel/models/anthropic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
import os
from typing import Any, Dict, List, Optional

from anthropic import Anthropic
from anthropic._types import NOT_GIVEN
from anthropic import NOT_GIVEN, Anthropic

from camel.configs import ANTHROPIC_API_PARAMS
from camel.messages import OpenAIMessage
Expand Down
78 changes: 74 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ colorama = "^0"
jsonschema = "^4"
protobuf = "^4"
pathlib = "^1.0.1"
anthropic = "^0.21.3"
anthropic = "^0.28.0"
docstring-parser = "^0.15"
pydantic = ">=1.9,<3"
curl_cffi = "0.6.2"
Expand Down

0 comments on commit a170ce1

Please sign in to comment.