CommandCodeAI / CommandCodeAI/command-code
Provider API: GPT-5.6 Luna returns 403 "Authentication failed" despite docs listing it as available on GOAT plan
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 4k
- Forks
- 350
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Summary
The Provider API rejects gpt-5.6-luna with 403 permission_error / "Authentication failed. Please check your credentials.", even though the docs state GPT-5.6 Luna is "Available on every plan, including Go" (https://commandcode.ai/docs/resources/pricing-limits). The same API key works fine with GPT-5.6 Sol, DeepSeek V4, Grok, Kimi, Qwen, GLM etc. google/gemini-3.7-flash exhibits the identical wrong error, while models that genuinely require a higher plan (Terra, Gemini 3.5/3.6, Claude family) correctly return MODEL_NOT_IN_PLAN.
Expected Behavior
gpt-5.6-luna works via Provider API on a GOAT plan (or any plan), as documented on https://commandcode.ai/docs/plans/goat (model table + usage estimates) and https://commandcode.ai/docs/resources/pricing-limits ("Available on every plan, including Go").
Actual Behavior
Every request to gpt-5.6-luna returns:
HTTP 403
{"error":{"message":"Authentication failed. Please check your credentials.","type":"permission_error"}}
Note: permission_error / "Authentication failed" is not listed among the documented Provider API error codes (https://commandcode.ai/docs/provider) — the table there only defines 403 upgrade_required. Reproducible over direct connection and via proxy, from multiple regions, repeatedly (also reproduced in earlier weeks, not just today).
Steps to reproduce the issue
curl https://api.commandcode.ai/provider/v1/chat/completions \
-H "Authorization: Bearer ***" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-luna","messages":[{"role":"user","content":"hi"}],"max_tokens":16}'
The key IS valid (authenticates fine for other models) and GET /provider/v1/models lists gpt-5.6-luna.
Command Code Version
use API KEY
Operating System
Linux
Terminal/IDE
No response
Shell
No response
Session file (optional)
No response
Fix prompt (optional)
No response
Additional context
Docs contradicting observed behavior:
- https://commandcode.ai/docs/plans/goat — Luna in the GOAT model table & usage estimates
- https://commandcode.ai/docs/resources/pricing-limits — "GPT-5.6 Luna … Available on every plan, including Go"; "Gemini 3.7 Flash … Available on GOAT and above"
- https://commandcode.ai/docs/provider — error-code table does not include
permission_error
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die curl-Anfrage gegen /provider/v1/chat/completions zu reproduzieren und sie mit einem funktionierenden Modell unter Verwendung desselben Schlüssels zu vergleichen. Lies anschließend die vom Endpunkt referenzierten Pfade für die Auflistung der Provider API-Modelle, die Planvalidierung und die Fehlerbehandlung sowie die verlinkte Preis- und Provider-Dokumentation. Erledigt ist die Aufgabe, wenn berechtigte Modelle die dokumentierte Antwort oder den korrekten dokumentierten Planfehler zurückgeben, statt Authentication failed.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100