[BUG] LiteLLM provider sends max output = context window as max_tokens, with no way to override it
Mantenedores costumam responder em até 3 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 52/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- ai
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 2k
- Forks
- 301
- Merge médio
- 3d 14h
- PRs com merge (30d)
- 103
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Zoo-Code-Org/Zoo-Code
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Mantenedores costumam responder em até 3 dias
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsTalvez já em andamento @easonLiangWorldedtech assumiu há 15 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Mantenedores costumam responder em até 3 dias
-
[BUG] search_files hides matching text on long linesTalvez já em andamento @DananjayaNadun assumiu há 9 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 3 dias
Todas as issues de Zoo-Code-Org/Zoo-Code
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
ci
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ClickHouse/clickhouse-js#1248 ·
Mantenedores costumam responder em até 1 dia
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltAbertatechnik
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
AhmedNAgy25/analysor#25 ·
Mantenedores costumam responder em até 1 dia