[BUG] OpenAI Compatible: Context Window Size resets to 128000 for unknown models
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
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript, vscode
- Lĩnh vực
- api, developer-experience
Hướng nghiên cứu
Start by reproducing the steps in Settings and Model Configuration using the provided OpenAI-compatible gateway and an unknown model ID. Trace where the unknown-model fallback sets contextWindow to 128000 and where custom model profiles are saved. Done means the configured context window persists after saving and switching profiles; support for reading /v1/models would require using its context_length value.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
The Context Window Size resets to 128000. This happens with models that Zoo Code does not know. I use the OpenAI Compatible provider with a gateway. Example: Base URL https://routellm.abacus.ai/v1, Model ID abacusai/Smaug-Flash. The model supports 1M context. The gateway's /v1/models endpoint reports context_length: 1000000. Zoo Code still shows 128000. Editing the field does not persist. The value springs back immediately.
To Reproduce
- Open Settings. Select the OpenAI Compatible provider.
- Set Base URL to a gateway. Set Model ID to a model outside Zoo Code's catalog.
- Open Model Configuration. Set Context Window Size to 1000000.
- The field springs back to 128000.
Expected behavior
Zoo Code saves my value. Even better: it reads context_length from the provider's /v1/models endpoint. Many OpenAI-compatible gateways expose this.
Actual result
The field resets to 128000. The profile keeps 128000 too. Zoo Code condenses context far too early as a result.
What version of zoo are you running
3.99.100823
Additional context
- macOS 27.3, Apple Silicon.
- The bug comes from Roo Code. See archived Roo issue #4475 (RooCodeInc/Roo-Code). The unknown-model fallback hardcodes
contextWindow: 128000. - Workaround: Quit VS Code. Edit
openAiCustomModelInfo.contextWindowin the extension state (~/Library/Application Support/Code/User/globalStorage/state.vscdb, keyZooCodeOrganization.zoo-code). Restart. Then change any setting in the UI. This triggers a profile save. The value persists now. A profile switch before the save reloads 128000. - I run three profiles on one gateway. I must repeat this procedure for every profile and every new model I select. Fetching
/v1/modelswould fix this whole class of gateways and custom models.
- 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