CommandCodeAI / CommandCodeAI/command-code
Provider API: GPT-5.6 Luna returns 403 "Authentication failed" despite docs listing it as available on GOAT plan
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 4k
- フォーク
- 350
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、/provider/v1/chat/completions に対する curl リクエストを再現し、同じキーを使った動作するモデルの場合と比較します。次に、エンドポイントから参照されている Provider API のモデル一覧、プラン検証、エラー処理のパスと、リンク先の料金およびプロバイダーのドキュメントを読みます。対象モデルが Authentication failed ではなく、ドキュメントに記載されたレスポンスまたは正しいドキュメント記載のプランエラーを返すようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100