Do not derive model context from prompt and output token limits
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
Describe the bug
The model details display can overstate total context if it derives context by adding max_prompt_tokens and max_output_tokens. These are independent maxima and their sum may exceed max_context_window_tokens.
Affected version
1.0.81
Steps to reproduce the behavior
- Return synthetic model metadata with
max_prompt_tokens: 100000,max_output_tokens: 20000, andmax_context_window_tokens: 100000. - Open the CLI model details display.
- Check whether it reports 120,000 tokens instead of the declared 100,000-token context window.
Expected behavior
Display max_context_window_tokens as the total context window. Treat prompt and output limits as independent maxima rather than values whose sum defines context.
Additional context
The Copilot SDK/runtime preserves the independent context value, so this appears limited to CLI presentation.
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.
Hướng nghiên cứu
Bắt đầu từ phần hiển thị chi tiết model trong CLI và lần theo cách metadata tổng hợp của model được định dạng. Tái hiện với max_prompt_tokens 100000, max_output_tokens 20000 và max_context_window_tokens 100000; hoàn tất khi phần hiển thị báo cáo context window được khai báo là 100000 token, đồng thời giữ các giới hạn prompt và output độc lập.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 75/100