Security advisory — Malicious litellm versions 1.82.7 and 1.82.8 were removed from PyPI (potential API key exfiltration). Uninstall them, rotate exposed credentials, and upgrade to a safe release (e.g. 1.82.9+). Run pip show litellm to verify. PyPI · README

AI Gateway Cache Ops

Admin Console /admin/cache writes enterprise/.runtime/admin/cache-config.json, then calls the gateway /internal/cache/reload after save.

AI Gateway Cache Ops

Feature flags

Env varDefaultDescription
GATEWAY_CACHE_L1onL1 exact cache
GATEWAY_CACHE_L2offL2 semantic cache
GATEWAY_CACHE_L1_TTL5mL1 TTL
GATEWAY_CACHE_SEMANTIC_THRESHOLD0.92L2 similarity threshold
GATEWAY_CACHE_REPLAY_MODEburstStreaming replay mode
REDIS_URLemptyWhen set, L1 uses Redis

Admin Console /admin/cache writes enterprise/.runtime/admin/cache-config.json, then calls the gateway /internal/cache/reload after save.

Eviction

bash
1curl -X POST "$GATEWAY/internal/cache/evict" \
2 -H "Authorization: Bearer $GATEWAY_INTERNAL_TOKEN" \
3 -H 'content-type: application/json' \
4 -d '{"prefix":"<key-hash-prefix>"}'

Fallback

Set GATEWAY_CACHE_L1=off and GATEWAY_CACHE_L2=off, then restart the gateway. Behavior matches cache disabled.

Made-with: Damon Li