diff --git a/poetry.lock b/poetry.lock index 88702c88..07980253 100644 --- a/poetry.lock +++ b/poetry.lock @@ -202,28 +202,30 @@ files = [ [[package]] name = "anthropic" -version = "0.47.2" +version = "0.71.0" description = "The official Python library for the anthropic API" optional = false python-versions = ">=3.8" groups = ["main"] files = [ - {file = "anthropic-0.47.2-py3-none-any.whl", hash = "sha256:61b712a56308fce69f04d92ba0230ab2bc187b5bce17811d400843a8976bb67f"}, - {file = "anthropic-0.47.2.tar.gz", hash = "sha256:452f4ca0c56ffab8b6ce9928bf8470650f88106a7001b250895eb65c54cfa44c"}, + {file = "anthropic-0.71.0-py3-none-any.whl", hash = "sha256:85c5015fcdbdc728390f11b17642a65a4365d03b12b799b18b6cc57e71fdb327"}, + {file = "anthropic-0.71.0.tar.gz", hash = "sha256:eb8e6fa86d049061b3ef26eb4cbae0174ebbff21affa6de7b3098da857d8de6a"}, ] [package.dependencies] anyio = ">=3.5.0,<5" distro = ">=1.7.0,<2" -httpx = ">=0.23.0,<1" +docstring-parser = ">=0.15,<1" +httpx = ">=0.25.0,<1" jiter = ">=0.4.0,<1" pydantic = ">=1.9.0,<3" sniffio = "*" typing-extensions = ">=4.10,<5" [package.extras] +aiohttp = ["aiohttp", "httpx-aiohttp (>=0.1.8)"] bedrock = ["boto3 (>=1.28.57)", "botocore (>=1.31.57)"] -vertex = ["google-auth (>=2,<3)"] +vertex = ["google-auth[requests] (>=2,<3)"] [[package]] name = "anyio" @@ -6686,4 +6688,4 @@ vllm = ["vllm"] [metadata] lock-version = "2.1" python-versions = "^3.10" -content-hash = "7068a41edbe8f0e15ed5a6f1456e8b39810e14f22f6bf73f337d14850767d6bc" +content-hash = "6ab9dbff2b007453958db27688ffa7e2e665a39e3d549d6b1b12406214f89d2c" diff --git a/pyproject.toml b/pyproject.toml index e40627a7..cac19e6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ rich = "^13.7.0" litellm = "1.61.3" tiktoken = ">=0.7.0" aiofiles = ">=22.0,<24.0" -anthropic = "^0.47.2" +anthropic = ">=0.54.0" vertexai= "1.71.1" vllm = { version = "^0.6.3", optional = true } aiodocker = { version = "^0.24.0", optional = true } diff --git a/src/bespokelabs/curator/request_processor/online/base_online_request_processor.py b/src/bespokelabs/curator/request_processor/online/base_online_request_processor.py index 52a0d01d..3df1ef2f 100644 --- a/src/bespokelabs/curator/request_processor/online/base_online_request_processor.py +++ b/src/bespokelabs/curator/request_processor/online/base_online_request_processor.py @@ -312,7 +312,7 @@ def free_capacity(self, tracker, tokens): def aiohttp_connector(self, tcp_limit: int) -> aiohttp.ClientSession: """Create an aiohttp connector with rate limiting.""" connector = aiohttp.TCPConnector(limit=10 * tcp_limit) - return aiohttp.ClientSession(connector=connector) + return aiohttp.ClientSession(connector=connector,trust_env=True) async def process_requests_from_file( self,