diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6130a7..12fe38e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -74,7 +74,7 @@ repos: - aiohttp - coredis - fhaviary[llm]>=0.14.0 # Match pyproject.toml - - litellm>=1.44 # Match pyproject.toml + - litellm>=1.44,<1.57.2 # Match pyproject.toml - limits - numpy - pydantic~=2.0,>=2.10.1,<2.10.2 # Match pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index d879bf2..293a347 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ dev = [ "fh-llm-client[local]", "fhaviary[xml]", "ipython>=8", # Pin to keep recent + "litellm<1.57.2", # Pin for Router.acompletion typing break from https://github.com/BerriAI/litellm/pull/7594 "mypy>=1.8", # Pin for mutable-override "pre-commit>=3.4", # Pin to keep recent "pylint-pydantic", diff --git a/uv.lock b/uv.lock index 6a093ef..634801b 100644 --- a/uv.lock +++ b/uv.lock @@ -567,7 +567,7 @@ wheels = [ [[package]] name = "fh-llm-client" -version = "0.0.8.dev2+gf8125c0.d20241231" +version = "0.0.9.dev3+g6c43cd4.d20250109" source = { editable = "." } dependencies = [ { name = "coredis" }, @@ -583,6 +583,7 @@ dependencies = [ dev = [ { name = "fhaviary", extra = ["xml"] }, { name = "ipython" }, + { name = "litellm" }, { name = "mypy" }, { name = "numpy" }, { name = "pre-commit" }, @@ -610,6 +611,7 @@ codeflash = [ { name = "codeflash" }, { name = "fhaviary", extra = ["xml"] }, { name = "ipython" }, + { name = "litellm" }, { name = "mypy" }, { name = "numpy" }, { name = "pre-commit" }, @@ -630,6 +632,7 @@ codeflash = [ dev = [ { name = "fhaviary", extra = ["xml"] }, { name = "ipython" }, + { name = "litellm" }, { name = "mypy" }, { name = "numpy" }, { name = "pre-commit" }, @@ -658,6 +661,7 @@ requires-dist = [ { name = "limits" }, { name = "litellm", marker = "python_full_version < '3.13'" }, { name = "litellm", marker = "python_full_version >= '3.13'", specifier = ">=1.49.1" }, + { name = "litellm", marker = "extra == 'dev'", specifier = "<1.57.2" }, { name = "mypy", marker = "extra == 'dev'", specifier = ">=1.8" }, { name = "numpy", marker = "extra == 'local'" }, { name = "pre-commit", marker = "extra == 'dev'", specifier = ">=3.4" },