mirror of
https://github.com/HKUDS/OpenSpace.git
synced 2026-09-11 22:51:05 +00:00
fix(deps): relax litellm security pin window
This commit is contained in:
parent
d1e367d0ed
commit
a9d4f71ccd
3 changed files with 14 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
12
tests/test_litellm_pin_window.py
Normal file
12
tests/test_litellm_pin_window.py
Normal 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
|
||||
Loading…
Add table
Reference in a new issue