Gemini models return 400 Bad Request in Copilot CLI
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
**Request ID:** 8B9B:2E3309:6C8CC:19684A:6A593988
**Timestamp:** 2026-07-16T13:05:40Z
**Error:** CAPIError: 400 Bad Request
## Reproduction
1. Using Copilot with Gemini model selection (tried `gemini-3.1-pro-preview` and `gemini-3.5-flash`)
2. Sent plain text prompt with no attachments/tools
3. All advanced options at defaults (no custom reasoning/context overrides)
4. Extensions/tool-calling disabled
## Observed Behavior
- Request rejected with HTTP 400 before reaching model inference
- Error appears to be request-shape validation (not model timeout or API availability)
- Other models (GPT, Claude) work fine in same session
## Expected Behavior
Gemini models should accept and process the request like other available models
## Environment
- Copilot CLI (latest via app)
- Windows
Note: It appears to work if switched to "explore" mode
---
Request the backend to trace this request ID to identify which field/parameter was rejected.
コントリビューションガイド
調査の方向性
まず、リクエスト ID 8B9B:2E3309:6C8CC:19684A:6A593988 を使用し、一覧にある Gemini モデルで Windows 上の Copilot CLI においてリクエストを再現して、normal モードと explore モードを比較します。どのリクエストフィールドが HTTP 400 の原因になるかを追跡します。Gemini でモードを変更せずに通常のプロンプトが動作し、GPT と Claude の動作に影響がない状態を完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- api, cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100