github / github/copilot-cli

1.0.82 Regression: Unknown command: /model with BYOK

Offen
#4,672 2 Kommentare 6 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 bug

As of 1.0.81/82 the /model command apparently does nto work anymore if the model is set via environment variables for BYOK (see https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models)

On e.g. Azure AI Foundry multiple models can be hosted and I used the /model command to switch between models (like gpt-5.6-luna/terra/sol) based on requirements, this does not work anymore.

Affected version

1.0.81 and 1.0.82, it works with 1.0.80 on windows x64, verified this by manually downgrading the cli version.

Steps to reproduce the behavior
  1. setup azure ai foundry, deploy a few gpt-5.6 models
  2. run github copilot cli like this:

SET COPILOT_PROVIDER_BASE_URL=https://my-azure-ai-foundry.com/openai/v1
SET COPILOT_PROVIDER_API_KEY=key

SET COPILOT_PROVIDER_TYPE=azure
SET COPILOT_PROVIDER_WIRE_API=responses
SET COPILOT_MODEL=gpt-5.6-luna
copilot --reasoning-effort max
Expected behavior

I can select the model after starting copilot with BYOK settings.

Additional context

No response

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 damit, den Fehler mit den dokumentierten COPILOT_PROVIDER_*- und COPILOT_MODEL-Umgebungsvariablen zu reproduzieren, und vergleiche anschließend das Verhalten von /model in den Versionen 1.0.80 und 1.0.81/82. Bestätige, dass nach dem Start von copilot mit Azure AI Foundry BYOK-Einstellungen ein Modell ausgewählt werden kann, einschließlich der responses wire API.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, shell
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

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