github / github/copilot-cli

Gemini models return 400 Bad Request in Copilot CLI

Offen
#4,155 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:models
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die Anfrage in Copilot CLI unter Windows mit den aufgeführten Gemini-Modellen unter Verwendung der Anfrage-ID 8B9B:2E3309:6C8CC:19684A:6A593988 zu reproduzieren und den normalen Modus mit dem Explore-Modus zu vergleichen. Verfolge, welches Anfragefeld den HTTP 400 verursacht; als erledigt gilt die Aufgabe, wenn einfache Prompts mit Gemini funktionieren, ohne die Modi zu ändern, während das Verhalten von GPT und Claude unverändert bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
api, cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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