Commit Graph
3 Commits
Author SHA1 Message Date
inference-bot 9e25578ee6 upgrade: pin LiteLLM v1.108.0 (candidate for 2026-11-08 window)
- Dockerfile FROM v1.103.2 -> v1.108.0; manifest upstreamVersion follows.
- patch_expose_cost_headers.py: upstream 1.108.0 refactored the CORS
  middleware call (expose_headers now also spreads
  trace_response_expose_headers()), so the 1.103.x anchor no longer
  matched and the patch would have SILENTLY stopped applying. The script
  now handles both anchor shapes (1.103.x first, 1.108.x fallback).
- All 8 build patches verified against the real v1.108.0 sources: every
  anchor matched, every patched file compiles, re-runs are idempotent.
- 36 new migrations, all additive (no unguarded DROP/DELETE/UPDATE);
  budget_reset_at unchanged on LiteLLM_TeamTable; SpendLogs gains only
  billing_agent_id.
2026-11-06 03:55:36 +00:00
inference-bot 83c543a0ba gateway: expose the eight telemetry headers requested in co-op/support#39
Adds x-litellm-model-name, -call-id, -key-spend, -response-duration-ms, -overhead-duration-ms, -callback-duration-ms, -attempted-retries and -attempted-fallbacks to the CORS expose list, on the GM's go-ahead. Renames COST_HEADERS to EXPOSED_HEADERS since the list is no longer only costs. x-litellm-key-spend discloses the caller's own key spend, which is their own data; noted in the thread so it can be dropped if anyone objects.
2026-10-31 21:26:03 +00:00
inference-bot 197abce9e6 gateway: honour LITELLM_CORS_ORIGINS from app env; expose cost headers (#38, #39)
start.sh hardcoded and exported LITELLM_CORS_ORIGINS, so the Cloudron app env that is meant to control it was silently overridden — the change I made earlier tonight looked applied and was inert. It now defaults only when unset, so the app env wins, and the co-op decision to allow all origins (co-op/support#38) actually takes effect. Comment rewritten for the current version and the reasoning. Also adds patch_expose_cost_headers.py (wired into the Dockerfile) so x-litellm-response-cost* can be read by cross-origin clients (co-op/support#39); upstream closed the request as stale, so it is handled at the app layer like the other patches.
2026-10-31 17:20:01 +00:00