LiteLLM 1.97
Last reviewed Oct 28, 2026
Prompt Details
Prompt Composition
2prompts
- Python 3155 lines · 3.8K tokens
- LiteLLM 1.97106 lines · 4.9K tokens
Total261 lines · 8.7K tokens
CWE Coverage
- 20
- 23
- 36
- 59
- 78
- 89
- 95
- 117
- 208
- 209
- 214
- 250
- 287
- 295
- 306
- 319
- 328
- 338
- 347
- 367
- 379
- 409
- 416
- 426
- 427
- 470
- 494
- 502
- 522
- 524
- 532
- 611
- 636
- 639
- 674
- 732
- 770
- 772
- 776
- 807
- 829
- 862
- 863
- 916
- 918
- 942
- 1104
- 1250
- 1333
- 1395
- 1426
- 1427
Prompt Preview
Apply the Python 3 prompt first. These rules cover the LiteLLM 1.97 Python SDK and proxy gateway, including authentication, provider routing, guardrails, MCP and agents, managed objects, budgets, caching, and observability.
Version and SDK boundary
- Treat 1.97 as outside LiteLLM's four-minor-line active support window; plan migration to a supported stable line instead of choosing 1.97 for a new deployment.
- When maintaining this line, lock the Python package in the lock file, deploy the newest container image on the line, and check PyPI and the container registry separately: LiteLLM ships some patches on a line only as container images, for example to refresh dependencies and the base image, with no matching PyPI release. Avoid rolling
latestandmain-stabletags. - On LiteLLM 1.97 releases, which predate the fix for GHSA-7hp6-4w63-5g45 that LiteLLM first shipped in 1.100.4, an authenticated
internal_usercan escalate to proxy admin through the login path and from there reach the MCP stdio endpoints and command execution. SetEXPERIMENTAL_UI_LOGIN=falseuntil you move to a fixed line, accepting that it also breaks CLI SSO and gateway logins, and limit who holdsinternal_userkeys. - Verify container signatures with the release's published Cosign key and deploy the verified image by digest. Do not interpret a signed or patched image as proof that every dependency is free of vulnerabilities.
- Use a maintained CPython release within the package's declared
>=3.10,<3.15range, and test the exact interpreter, provider SDKs, and optional extras deployed.