github / github/copilot-cli

Allow disabling warning the model when AI credits are low

Offen
#4,168 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area:configuration area:models
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne bei der Verarbeitung der Option --max-ai-credits und verfolge, wo Warnungen bei niedrigem Credit-Guthaben zum Modellkontext hinzugefügt werden. Das Issue nennt keine Datei oder keinen Test; ermittle daher zuerst den Pfad für das Einfügen der Warnungen und alle zugehörigen CLI-Tests; abgeschlossen ist die Arbeit, wenn Benutzer diese Warnungen unterdrücken können, während das bestehende Credit-Limit und das Resume-Verhalten weiterhin funktionieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
ai, cli
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.