github / github/copilot-cli

Bug with BYOK: reasoning effort not supported for model "glm-5.2:cloud"

オープン
#4,012 コメント 2 件 リアクション 23 件 担当者 0 名 GitHub で見る
area:configuration area:models
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### 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.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、記載されている BYOK 環境変数を使って、報告されたコマンドを -p フラグありとなしの両方で実行し、reasoning-effort の検証にどのように到達するかを比較します。-p の CLI エントリーパスとモデルの機能チェックを調査します。設定が一貫して処理されるか、サポートされていないモデルのエラーが制限を明確に説明すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ollama, shell
領域
api, cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

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

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