Do not derive model context from prompt and output token limits

未關閉 適合新手
#4,638 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
75/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
shell
領域
cli

研究方向

從 CLI 的模型詳細資料顯示開始,追蹤合成模型中繼資料的格式化方式。使用 max_prompt_tokens 100000、max_output_tokens 20000 和 max_context_window_tokens 100000 重現;完成的標誌是顯示內容回報宣告的 100000-token context window,同時保持 prompt 和 output 限制彼此獨立。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。