Allow disabling warning the model when AI credits are low
- 主要语言
- 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