[BUG] LiteLLM provider sends max output = context window as max_tokens, with no way to override it
Maintainer antworten meist innerhalb von 3 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 52/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- ai
Rechercherichtung
Reproduce through Settings → Providers → LiteLLM, then click Refresh Models and open the model panel, which shows Max output equal to Context Window. Find where the LiteLLM provider reads the max output value from the model info and sends it as the request's output limit. Done means the request no longer sends the full context window as the output budget, and the LiteLLM provider settings include a field to override the output limit.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
When a LiteLLM model reports a max output equal to its context window, the LiteLLM provider uses that value for the request's output limit. The request then fails because the output budget fills the whole context window. The LiteLLM provider settings have no field to override this value, so users can't work around it unless they can edit the proxy's config.
To Reproduce
In Settings → Providers, choose LiteLLM and enter the proxy's base URL and API key.
Click Refresh Models and select a model whose model_info has no separate output limit.
The model panel shows Context Window: 1,048,576 and Max output: 1,048,576.
Send any prompt.
Expected behavior
Describe what you expected to happen.
litellm.ContextWindowExceededError: This model's maximum context length is 1048576 tokens.
However, you requested 1048576 output tokens and your prompt contains 44727 characters
Screenshots
Add screenshots if they help.
Video
Add a video of the bug. A video helps us find the cause.
What version of zoo are you running
3.96.0 (2144b51b)
Additional context
Add any other facts about the problem. Include exact logs and error messages.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2k
- Forks
- 301
- Ø Merge
- 3 T. 14 Std.
- Gemergte PRs (30 T.)
- 103
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Zoo-Code-Org/Zoo-Code
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsEvtl. vergeben @easonLiangWorldedtech hat das vor 15 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
[BUG] search_files hides matching text on long linesEvtl. vergeben @DananjayaNadun hat das vor 9 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in Zoo-Code-Org/Zoo-Code
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
ci
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ClickHouse/clickhouse-js#1248 ·
Maintainer antworten meist innerhalb von 1 Tag
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltOffentechnik
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
AhmedNAgy25/analysor#25 ·
Maintainer antworten meist innerhalb von 1 Tag