github / github/copilot-cli

Allow `-max-ai-credits=0` when using local models

オープン 初心者向け
#4,167 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:configuration area:models
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。