[BUG] LiteLLM provider sends max output = context window as max_tokens, with no way to override it
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- ai
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 301
- Merge trung bình
- 3 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 103
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Zoo-Code-Org/Zoo-Code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsCó thể đã có người làm @easonLiangWorldedtech đã nhận 15 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[BUG] search_files hides matching text on long linesCó thể đã có người làm @DananjayaNadun đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của Zoo-Code-Org/Zoo-Code
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
EPPIcenter/sampledb3#162 ·
-
Particle-1 modelĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
tashfeenahmed/freellmapi#2169 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
via-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
🎙️ task - feat(mechanic): pave git.pull.close, a close of a superseded pull with its why on recordĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ehmpathy/rhachet-roles-ehmpathy#1576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vercel-labs/ui#1563 ·
Maintainer thường phản hồi trong vòng 1 ngày