Allow `-max-ai-credits=0` when using local models
未关闭
适合新手
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'd like to be able to use local models with `/remote` without the possibility of accidentally using credits in that session
### Proposed solution
Remote the validation on `-max-ai-credits` that requires that it is >= 30.
### Example prompts or workflows
_No response_
### Additional context
The limit of 30 seems totally arbitrary, and when using a local model it doesn't mean anything. When testing with local models, it would be nice to know for sure that we can't accidentally use credits.
贡献指南
调研方向
首先定位 `-max-ai-credits` 选项的验证逻辑,以及在使用 `/remote` 时识别本地模型的代码。确认当前最小值为 30,然后验证本地模型工作流接受值 0,并确保会话不会意外使用额度。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 64/100