Do not derive model context from prompt and output token limits

Đang mở Phù hợp với người mới
#4,638 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/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ệ
shell
Lĩnh vực
cli

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.

Mô tả

triage
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
  1. Return synthetic model metadata with max_prompt_tokens: 100000, max_output_tokens: 20000, and max_context_window_tokens: 100000.
  2. Open the CLI model details display.
  3. 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.

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-cli

Tất cả issue của github/copilot-cli

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.