Bug with BYOK: reasoning effort not supported for model "glm-5.2:cloud"
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
### Describe the bug
I am experiencing an issue when using a custom BYOK configuration with Copilot CLI. Specifically, when I try to use the `--reasoning-effort max` flag, the CLI returns an error stating that the model does not support it, even though the configuration is otherwise valid.
### Affected version
v1.0.68
### Steps to reproduce the behavior
1. Run the following command:
COPILOT_PROVIDER_TYPE=openai COPILOT_PROVIDER_WIRE_API=responses COPILOT_PROVIDER_BASE_URL=https://ollama.com/v1 COPILOT_PROVIDER_API_KEY=$OLLAMA_API_KEY COPILOT_MODEL=glm-5.2:cloud COPILOT_PROVIDER_MAX_PROMPT_TOKENS=999424 COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=131072 copilot --yolo --reasoning-effort max -p hi
2. Observe the error:
Error: Model "glm-5.2:cloud" does not support reasoning effort configuration (requested: "max").
### Expected behavior
The CLI should handle the reasoning effort flag gracefully or allow it for models that might support it, or at least provide a clearer error message indicating why it's not supported for this specific model configuration. Ideally, it should work as expected if the underlying API supports it.
### Additional context
I am confident I can use the command `COPILOT_PROVIDER_TYPE=openai COPILOT_PROVIDER_WIRE_API=responses COPILOT_PROVIDER_BASE_URL=https://ollama.com/v1 COPILOT_PROVIDER_API_KEY=$OLLAMA_API_KEY COPILOT_MODEL=glm-5.2:cloud COPILOT_PROVIDER_MAX_PROMPT_TOKENS=999424 COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=131072 copilot --yolo --reasoning-effort max` without `-p` flag.
This issue only exists when using the `-p` flag.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia eseguendo il comando segnalato con e senza l’opzione -p, utilizzando le variabili d’ambiente BYOK elencate, e confronta il modo in cui viene raggiunta la convalida dello sforzo di ragionamento. Analizza il percorso di ingresso della CLI per -p e il controllo delle capacità del modello. Il lavoro è completato quando la configurazione viene gestita in modo coerente oppure l’errore relativo al modello non supportato spiega chiaramente la limitazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ollama, shell
- Ambito
- api, cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100