From 6ef9108325d0256d126a92ad6d93c442902d7017 Mon Sep 17 00:00:00 2001 From: Kevin Solorio <103829+ksolo@users.noreply.github.com> Date: Tue, 3 Dec 2024 05:29:57 -0600 Subject: [PATCH] add explicit dependency for httpx httpx version 0.28.0 removed a deprecated keyword based argument `proxies` that is used in some of the client libraries. This PR pins our version of httpx to 0.27.x to prevent this error. Closes #68 Closes #110 --- poetry.lock | 11 ++++++----- pyproject.toml | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 27aa1cc1..a8854de4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "aiohttp" @@ -1845,13 +1845,13 @@ test = ["Cython (>=0.29.24,<0.30.0)"] [[package]] name = "httpx" -version = "0.27.0" +version = "0.27.2" description = "The next generation HTTP client." optional = false python-versions = ">=3.8" files = [ - {file = "httpx-0.27.0-py3-none-any.whl", hash = "sha256:71d5465162c13681bff01ad59b2cc68dd838ea1f10e51574bac27103f00c91a5"}, - {file = "httpx-0.27.0.tar.gz", hash = "sha256:a0cb88a46f32dc874e04ee956e4c2764aba2aa228f650b06788ba6bda2962ab5"}, + {file = "httpx-0.27.2-py3-none-any.whl", hash = "sha256:7bb2708e112d8fdd7829cd4243970f0c223274051cb35ee80c03301ee29a3df0"}, + {file = "httpx-0.27.2.tar.gz", hash = "sha256:f7c2be1d2f3c3c3160d441802406b206c2b76f5947b11115e6df10c6c65e66c2"}, ] [package.dependencies] @@ -1866,6 +1866,7 @@ brotli = ["brotli", "brotlicffi"] cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] +zstd = ["zstandard (>=0.18.0)"] [[package]] name = "httpx-sse" @@ -6492,4 +6493,4 @@ openai = ["openai"] [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "e455ddfd148ffae77e7b9ac196792b38c7cc545c0866cca2aaae227f4a4201df" +content-hash = "bcc204dd665cacb69c2fc9e1b4055ada421c73ef4ac4320044fbc0a2495e235d" diff --git a/pyproject.toml b/pyproject.toml index 8ae9295b..264f308b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ mistralai = { version = "^1.0.3", optional = true } openai = { version = "^1.35.8", optional = true } # Optional dependencies for different providers +httpx = "~0.27.0" [tool.poetry.extras] anthropic = ["anthropic"] aws = ["boto3"]