fix(deps): relax litellm security pin window

This commit is contained in:
gujishh 2026-06-03 15:26:03 +09:00
parent d1e367d0ed
commit a9d4f71ccd
3 changed files with 14 additions and 2 deletions

View file

@ -14,7 +14,7 @@ authors = [
]
dependencies = [
"litellm>=1.70.0,<1.82.7", # pinned to avoid PYSEC-2026-2 supply-chain compromise (1.82.7/1.82.8 were malicious)
"litellm>=1.70.0,!=1.82.7,!=1.82.8", # pinned to avoid PYSEC-2026-2 supply-chain compromise (1.82.7/1.82.8 were malicious)
"python-dotenv>=1.0.0",
"openai>=1.0.0",
"jsonschema>=4.25.0",

View file

@ -1,5 +1,5 @@
# OpenSpace core dependencies
litellm>=1.70.0,<1.82.7 # pinned to avoid PYSEC-2026-2 supply-chain compromise (1.82.7/1.82.8 were malicious)
litellm>=1.70.0,!=1.82.7,!=1.82.8 # pinned to avoid PYSEC-2026-2 supply-chain compromise (1.82.7/1.82.8 were malicious)
python-dotenv>=1.0.0
openai>=1.0.0
jsonschema>=4.25.0

View file

@ -0,0 +1,12 @@
from pathlib import Path
def test_litellm_pin_window_matches_safe_versions() -> None:
pyproject = Path("pyproject.toml").read_text()
requirements = Path("requirements.txt").read_text()
expected = "litellm>=1.70.0,!=1.82.7,!=1.82.8"
assert expected in pyproject
assert expected in requirements
assert "litellm>=1.70.0,<1.82.7" not in pyproject
assert "litellm>=1.70.0,<1.82.7" not in requirements