From 1d0fdf886b31646a32141e5f357d73661567d5c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pstr=C4=85g?= Date: Tue, 17 Dec 2024 13:19:10 +0100 Subject: [PATCH] fix: litellm client crash in python 3.13 (#245) --- packages/ragbits-core/pyproject.toml | 2 +- packages/ragbits-guardrails/pyproject.toml | 2 +- uv.lock | 21 +++++++++++---------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/ragbits-core/pyproject.toml b/packages/ragbits-core/pyproject.toml index 2360c13cb..8d0184e3f 100644 --- a/packages/ragbits-core/pyproject.toml +++ b/packages/ragbits-core/pyproject.toml @@ -36,7 +36,7 @@ dependencies = [ "pydantic>=2.9.1", "typer~=0.12.5", "tomli~=2.0.2", - "litellm~=1.46.0", + "litellm~=1.55.0", ] [project.urls] diff --git a/packages/ragbits-guardrails/pyproject.toml b/packages/ragbits-guardrails/pyproject.toml index 77d926f8c..893dc8612 100644 --- a/packages/ragbits-guardrails/pyproject.toml +++ b/packages/ragbits-guardrails/pyproject.toml @@ -41,7 +41,7 @@ dependencies = ["ragbits-core==0.5.1"] [project.optional-dependencies] openai = [ - "openai~=1.51.0", + "openai~=1.57.3", ] [tool.uv] diff --git a/uv.lock b/uv.lock index 26655e9fc..8f8cd916d 100644 --- a/uv.lock +++ b/uv.lock @@ -1917,11 +1917,12 @@ sdist = { url = "https://files.pythonhosted.org/packages/0e/72/a3add0e4eec4eb9e2 [[package]] name = "litellm" -version = "1.46.8" +version = "1.55.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiohttp" }, { name = "click" }, + { name = "httpx" }, { name = "importlib-metadata" }, { name = "jinja2" }, { name = "jsonschema" }, @@ -1932,9 +1933,9 @@ dependencies = [ { name = "tiktoken" }, { name = "tokenizers" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/be/96/081f561ed21c5ac833ccfcce615085735e346c27557b298c4aa91a38a59c/litellm-1.46.8.tar.gz", hash = "sha256:443c67d33e1a264641b80bf170cad1ba42d6fa9816f86df5eaaaf10c1e21b551", size = 8377624 } +sdist = { url = "https://files.pythonhosted.org/packages/00/37/c4776c052a29a0ac44bb7ded5ca64790dfd8d07dbc4413b6448048b7f6c2/litellm-1.55.0.tar.gz", hash = "sha256:d33dfabb7aa6f18294c43f20429d7d962b48104a0c2ddce08df7370029ac4780", size = 6195432 } wheels = [ - { url = "https://files.pythonhosted.org/packages/39/b6/834ec84a8abc44a852a3fa1fcd73bb127819c820114ee36acbf538e28672/litellm-1.46.8-py3-none-any.whl", hash = "sha256:112acc854d67ced573dc5d60bbf8b493dea1e61244013685dace8c2d912aa1b3", size = 8704678 }, + { url = "https://files.pythonhosted.org/packages/ba/7a/e2a210433357611dbb463c5e03dcfec6938047fce3294ae2240eb6716faf/litellm-1.55.0-py3-none-any.whl", hash = "sha256:b257242039cc0753cdf7e7e288f9379d8ccad58015ce95bdc8a8ec337d2fa7eb", size = 6463217 }, ] [[package]] @@ -2527,6 +2528,8 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/bc/f7/7ec7fddc92e50714ea3745631f79bd9c96424cb2702632521028e57d3a36/multiprocess-0.70.16-py310-none-any.whl", hash = "sha256:c4a9944c67bd49f823687463660a2d6daae94c289adff97e0f9d696ba6371d02", size = 134824 }, { url = "https://files.pythonhosted.org/packages/50/15/b56e50e8debaf439f44befec5b2af11db85f6e0f344c3113ae0be0593a91/multiprocess-0.70.16-py311-none-any.whl", hash = "sha256:af4cabb0dac72abfb1e794fa7855c325fd2b55a10a44628a3c1ad3311c04127a", size = 143519 }, { url = "https://files.pythonhosted.org/packages/0a/7d/a988f258104dcd2ccf1ed40fdc97e26c4ac351eeaf81d76e266c52d84e2f/multiprocess-0.70.16-py312-none-any.whl", hash = "sha256:fc0544c531920dde3b00c29863377f87e1632601092ea2daca74e4beb40faa2e", size = 146741 }, + { url = "https://files.pythonhosted.org/packages/ea/89/38df130f2c799090c978b366cfdf5b96d08de5b29a4a293df7f7429fa50b/multiprocess-0.70.16-py38-none-any.whl", hash = "sha256:a71d82033454891091a226dfc319d0cfa8019a4e888ef9ca910372a446de4435", size = 132628 }, + { url = "https://files.pythonhosted.org/packages/da/d9/f7f9379981e39b8c2511c9e0326d212accacb82f12fbfdc1aa2ce2a7b2b6/multiprocess-0.70.16-py39-none-any.whl", hash = "sha256:a0bafd3ae1b732eac64be2e72038231c1ba97724b60b09400d68f229fcc2fbf3", size = 133351 }, ] [[package]] @@ -2856,7 +2859,7 @@ wheels = [ [[package]] name = "openai" -version = "1.51.0" +version = "1.57.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, @@ -2868,9 +2871,9 @@ dependencies = [ { name = "tqdm" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/28/af/cc59b1447f5a02bb1f25b9b0cd94b607aa2c969a81d9a244d4067f91f6fe/openai-1.51.0.tar.gz", hash = "sha256:8dc4f9d75ccdd5466fc8c99a952186eddceb9fd6ba694044773f3736a847149d", size = 306880 } +sdist = { url = "https://files.pythonhosted.org/packages/0c/4d/af80b8d1a5a97f1085332e04489c33a1db91d589bdf4f3820ebda58f050b/openai-1.57.3.tar.gz", hash = "sha256:2c98ca6532b30d8bc5029974d2fcbd793b650009c2b014f47ffd4f9fdfc1f9eb", size = 316269 } wheels = [ - { url = "https://files.pythonhosted.org/packages/c7/08/9f22356d4fbd273f734db1e6663b7ca6987943080567f5580471022e57ca/openai-1.51.0-py3-none-any.whl", hash = "sha256:d9affafb7e51e5a27dce78589d4964ce4d6f6d560307265933a94b2e3f3c5d2c", size = 383533 }, + { url = "https://files.pythonhosted.org/packages/8c/14/e33e944fcf03c79cde60ad0677dc4f1bc13b4a1ef7fcbf1961b8d13a568c/openai-1.57.3-py3-none-any.whl", hash = "sha256:c4034a5676eb252ef2e0ed1f46d040ca3bdde24bb61b432f50bb0b38d0cf9ecf", size = 390208 }, ] [[package]] @@ -3334,8 +3337,6 @@ version = "6.0.0" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/18/c7/8c6872f7372eb6a6b2e4708b88419fb46b857f7a2e1892966b851cc79fc9/psutil-6.0.0.tar.gz", hash = "sha256:8faae4f310b6d969fa26ca0545338b21f73c6b15db7c4a8d934a5482faa818f2", size = 508067 } wheels = [ - { url = "https://files.pythonhosted.org/packages/c5/66/78c9c3020f573c58101dc43a44f6855d01bbbd747e24da2f0c4491200ea3/psutil-6.0.0-cp27-none-win32.whl", hash = "sha256:02b69001f44cc73c1c5279d02b30a817e339ceb258ad75997325e0e6169d8b35", size = 249766 }, - { url = "https://files.pythonhosted.org/packages/e1/3f/2403aa9558bea4d3854b0e5e567bc3dd8e9fbc1fc4453c0aa9aafeb75467/psutil-6.0.0-cp27-none-win_amd64.whl", hash = "sha256:21f1fb635deccd510f69f485b87433460a603919b45e2a324ad65b0cc74f8fb1", size = 253024 }, { url = "https://files.pythonhosted.org/packages/0b/37/f8da2fbd29690b3557cca414c1949f92162981920699cd62095a984983bf/psutil-6.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:c588a7e9b1173b6e866756dde596fd4cad94f9399daf99ad8c3258b3cb2b47a0", size = 250961 }, { url = "https://files.pythonhosted.org/packages/35/56/72f86175e81c656a01c4401cd3b1c923f891b31fbcebe98985894176d7c9/psutil-6.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ed2440ada7ef7d0d608f20ad89a04ec47d2d3ab7190896cd62ca5fc4fe08bf0", size = 287478 }, { url = "https://files.pythonhosted.org/packages/19/74/f59e7e0d392bc1070e9a70e2f9190d652487ac115bb16e2eff6b22ad1d24/psutil-6.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fd9a97c8e94059b0ef54a7d4baf13b405011176c3b6ff257c247cae0d560ecd", size = 290455 }, @@ -3879,7 +3880,7 @@ requires-dist = [ { name = "chromadb", marker = "extra == 'chroma'", specifier = "~=0.4.24" }, { name = "gradio", marker = "extra == 'lab'", specifier = "~=4.44.0" }, { name = "jinja2", specifier = ">=3.1.4" }, - { name = "litellm", specifier = "~=1.46.0" }, + { name = "litellm", specifier = "~=1.55.0" }, { name = "numpy", marker = "extra == 'local'", specifier = "~=1.26.0" }, { name = "opentelemetry-api", marker = "extra == 'otel'", specifier = "~=1.27.0" }, { name = "pydantic", specifier = ">=2.9.1" }, @@ -4022,7 +4023,7 @@ dev = [ [package.metadata] requires-dist = [ - { name = "openai", marker = "extra == 'openai'", specifier = "~=1.51.0" }, + { name = "openai", marker = "extra == 'openai'", specifier = "~=1.57.3" }, { name = "ragbits-core", editable = "packages/ragbits-core" }, ]