Do not derive model context from prompt and output token limits
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Shell
- Sterne
- 11.2k
- Forks
- 1.9k
- Ø Merge
- 14 Std. 16 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
Describe the bug
The model details display can overstate total context if it derives context by adding max_prompt_tokens and max_output_tokens. These are independent maxima and their sum may exceed max_context_window_tokens.
Affected version
1.0.81
Steps to reproduce the behavior
- Return synthetic model metadata with
max_prompt_tokens: 100000,max_output_tokens: 20000, andmax_context_window_tokens: 100000. - Open the CLI model details display.
- Check whether it reports 120,000 tokens instead of the declared 100,000-token context window.
Expected behavior
Display max_context_window_tokens as the total context window. Treat prompt and output limits as independent maxima rather than values whose sum defines context.
Additional context
The Copilot SDK/runtime preserves the independent context value, so this appears limited to CLI presentation.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne bei der Anzeige der Modelldetails in der CLI und verfolge, wie synthetische Modellmetadaten formatiert werden. Reproduziere dies mit max_prompt_tokens 100000, max_output_tokens 20000 und max_context_window_tokens 100000; abgeschlossen ist die Aufgabe, wenn die Anzeige das deklarierte Kontextfenster von 100000 Token meldet und dabei Prompt- und Ausgabelimits unabhängig hält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- shell
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Aktiv
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 75/100