github / github/copilot-cli

Allow disabling warning the model when AI credits are low

未關閉
#4,168 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:configuration area:models
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

I set `-max-ai-credits=30` and the model kept getting worried about using all the credits

### Proposed solution

Add an option to suppress whatever warnings are being injected to tell the model it is low on AI credits (or just remove it?).

### Example prompts or workflows

_No response_

### Additional context

I was testing with a local model, and passed `--max-ai-credits=30` (because 30 is the minimum value allowed). The model kept saying "The user is warning me there are only 30 AI credits left so I must be very efficient with my responses".

I can't tell exactly what text was being injected for the model (because when I exported the session there was no such text in there - presumably the export is not complete), but it was happening on every turn. For a local model the credits are not relevant, but even with a cloud model I think I would rather this information be hidden so it won't potentially taint how the model is working. If it runs out, I can `--resume` with another value.

貢獻指南

開啟貢獻指南

研究方向

從 --max-ai-credits 選項的處理開始,追蹤低額度警告被加入模型上下文的位置。該 issue 沒有指定檔案或測試,因此首先找出警告注入路徑以及任何相關的 CLI 測試;完成的標準是使用者可以抑制這些警告,同時現有的額度限制和恢復行為仍能正常運作。

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

評估

技術堆疊
shell
領域
ai, cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
48/100

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

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