Compare commits
1
Commits
main
...
upgrade-v1.108.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e25578ee6 |
No files matched your search
@@ -5,7 +5,7 @@
|
|||||||
"description": "LiteLLM AI Gateway \u2014 OpenAI-compatible proxy with per-user API keys, usage tracking, rate limiting, and model routing. Packaged for Cloudron with SSO/OIDC and PostgreSQL.",
|
"description": "LiteLLM AI Gateway \u2014 OpenAI-compatible proxy with per-user API keys, usage tracking, rate limiting, and model routing. Packaged for Cloudron with SSO/OIDC and PostgreSQL.",
|
||||||
"tagline": "AI gateway for cooperative inference",
|
"tagline": "AI gateway for cooperative inference",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"upstreamVersion": "1.103.2",
|
"upstreamVersion": "1.108.0",
|
||||||
"healthCheckPath": "/health/readiness",
|
"healthCheckPath": "/health/readiness",
|
||||||
"httpPort": 4000,
|
"httpPort": 4000,
|
||||||
"memoryLimit": 2147483648,
|
"memoryLimit": 2147483648,
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM ghcr.io/berriai/litellm:v1.103.2
|
FROM ghcr.io/berriai/litellm:v1.108.0
|
||||||
|
|
||||||
# v1.84.0 is the fix line for CVE-2026-35029 (auth bypass on
|
# v1.84.0 is the fix line for CVE-2026-35029 (auth bypass on
|
||||||
# /config/update, fixed 1.83.0) and CVE-2026-59822 (MCP session auth
|
# /config/update, fixed 1.83.0) and CVE-2026-59822 (MCP session auth
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ A Cloudron app package for [LiteLLM](https://litellm.ai/), the open-source AI ga
|
|||||||
|
|
||||||
LiteLLM is the single gateway between members and the inference backends. It handles per-member API keys, usage metering, rate limiting (via budget caps), and model routing — all behind one OpenAI-compatible endpoint.
|
LiteLLM is the single gateway between members and the inference backends. It handles per-member API keys, usage metering, rate limiting (via budget caps), and model routing — all behind one OpenAI-compatible endpoint.
|
||||||
|
|
||||||
**Current base image:** LiteLLM **v1.103.2**, pinned to the exact tag (fix line for CVE-2026-35029 / CVE-2026-59822, CISA KEV-listed; also carries the streaming-usage fix for prompt_tokens_details). See [Updating LiteLLM](#updating-litellm).
|
**Current base image:** LiteLLM **v1.108.0**, pinned to the exact tag (upgraded
|
||||||
|
from v1.103.2 on the 2026-11-08 maintenance window; minimum supported line remains
|
||||||
|
v1.84.0, the fix line for CVE-2026-35029 / CVE-2026-59822, CISA KEV-listed). See [Updating LiteLLM](#updating-litellm).
|
||||||
|
|
||||||
## What this provides
|
## What this provides
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ MEMBER REQUEST (co-op/support#39, 2026-10-31). Browser JS calling the gateway fr
|
|||||||
another origin cannot read a response header unless the server names it in
|
another origin cannot read a response header unless the server names it in
|
||||||
Access-Control-Expose-Headers. LiteLLM sets
|
Access-Control-Expose-Headers. LiteLLM sets
|
||||||
|
|
||||||
expose_headers=LITELLM_UI_ALLOW_HEADERS
|
expose_headers=LITELLM_UI_ALLOW_HEADERS # through 1.103.x
|
||||||
|
expose_headers=[*LITELLM_UI_ALLOW_HEADERS,
|
||||||
|
*trace_response_expose_headers()] # from 1.108.0
|
||||||
|
|
||||||
which covers seven names (semantic-filter, guardrail, cache-key, ...) and none of
|
which covers seven names (semantic-filter, guardrail, cache-key, ...) and none of
|
||||||
the cost ones — so `x-litellm-response-cost*` reads as null in JS even though the
|
the cost ones — so `x-litellm-response-cost*` reads as null in JS even though the
|
||||||
@@ -62,6 +64,20 @@ NEW = (
|
|||||||
+ " ],\n"
|
+ " ],\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# 1.108.0 refactored the middleware call (upstream added the trace-response
|
||||||
|
# header set to expose_headers). Same operation, new anchor; tried when the
|
||||||
|
# 1.103.2 shape is absent so the script works against either base image.
|
||||||
|
OLD_V1108 = (
|
||||||
|
" expose_headers=[*LITELLM_UI_ALLOW_HEADERS, *trace_response_expose_headers()],\n"
|
||||||
|
)
|
||||||
|
NEW_V1108 = (
|
||||||
|
" expose_headers=[\n"
|
||||||
|
" *LITELLM_UI_ALLOW_HEADERS,\n"
|
||||||
|
" *trace_response_expose_headers(),\n"
|
||||||
|
+ "".join(f' "{h}",\n' for h in EXPOSED_HEADERS)
|
||||||
|
+ " ],\n"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
# Glob rather than pin a Python version: the venv path moves when the base
|
# Glob rather than pin a Python version: the venv path moves when the base
|
||||||
@@ -76,13 +92,22 @@ def main() -> int:
|
|||||||
if "x-litellm-response-cost-input" in src:
|
if "x-litellm-response-cost-input" in src:
|
||||||
print("expose-cost-headers: already applied")
|
print("expose-cost-headers: already applied")
|
||||||
return 0
|
return 0
|
||||||
found = src.count(OLD)
|
for old, new, shape in ((OLD, NEW, "1.103.x"), (OLD_V1108, NEW_V1108, "1.108.x")):
|
||||||
if found != 1:
|
found = src.count(old)
|
||||||
print(f"WARN expose-cost-headers: expected exactly 1 CORS middleware call, found {found} — skipping")
|
if found == 1:
|
||||||
return 0
|
target.write_text(src.replace(old, new))
|
||||||
|
print(
|
||||||
target.write_text(src.replace(OLD, NEW))
|
f"expose-cost-headers: appended {len(EXPOSED_HEADERS)} cost header names "
|
||||||
print(f"expose-cost-headers: appended {len(EXPOSED_HEADERS)} cost header names to expose_headers in {target}")
|
f"to expose_headers (anchor {shape}) in {target}"
|
||||||
|
)
|
||||||
|
return 0
|
||||||
|
if found > 1:
|
||||||
|
print(f"WARN expose-cost-headers: expected exactly 1 {shape} CORS middleware call, found {found} — skipping")
|
||||||
|
return 0
|
||||||
|
print(
|
||||||
|
"WARN expose-cost-headers: no known expose_headers anchor found "
|
||||||
|
"(neither 1.103.x nor 1.108.x shape) — skipping"
|
||||||
|
)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user