github / github/copilot-cli

/refine failures

オープン
#4,747 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

triage
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

Describe the bug

Session Diagnosis

Root cause found. At  06:55:33Z , the  /refine  command failed with a 400 Bad Request:

"reasoning_effort "medium" was provided, but model gpt-4o-mini-2024-07-18 does not support reasoning effort"

What happened:

  1.  /refine  internally invokes  gpt-4o-mini  (a lightweight utility model) to rewrite your prompt into    tags.
  2. The request incorrectly included  reasoningEffort: "medium"  as a parameter.
  3.  gpt-4o-mini-2024-07-18  doesn't support the  reasoning_effort  parameter at all (only reasoning-capable models like o1/o3 do) — Azure OpenAI rejected the call outright with  invalid_reasoning_effort .
  4. The call failed in 545ms,  turn_failed  fired, and the CLI silently fell back to "Your text was left unchanged" instead of surfacing the real error.

This is a CLI-side bug, not an environment/proxy/auth issue: the refine feature is passing a reasoning-effort setting to a model that categorically rejects it. It's unrelated to the Blue Coat proxy or credentials — the request reached the API fine and got a clean structured rejection.

Affected version

1.0.83

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

/refine コマンドから始めて、その内部の gpt-4o-mini リクエストを追跡し、reasoningEffort がどのように追加され、turn_failed がどのように処理されるかに注目します。リクエストがサポートされていない設定を送信しなくなり、テキストが変更されなかったと黙って報告するのではなく、実際の失敗が表面化されれば完了です。

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

評価

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

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

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