Skip to content

Auth error with GPT 5.6-xxx models #36133

Description

@kvokka

Description

With the GPT 5.6 model, the request does not go through, while with the GPT 5.5, everything works correctly;

Image

opencode.json (cut)

{
...
    "openai": {
      "models": {
        "gpt-5.6-luna": {
          "limit": {
            "context": 258000,
            "output": 128000
          },
          "name": "GPT 5.6 Luna",
          "options": {
            "reasoningEffort": "high",
            "textVerbosity": "medium"
          },
          "variants": {
            "medium": {
              "reasoningEffort": "medium"
            },
            "low": {
              "reasoningEffort": "low"
            },
            "high": {
              "reasoningEffort": "high"
            },
            "xhigh": {
              "reasoningEffort": "xhigh"
            }
          },
          "reasoning": true
     },
      "name": "OpenAI",
      "npm": "@ai-sdk/openai",
      "options": {
        "apiKey": "{env:MY_CLI_LLM_PROXY_API_KEY}",
        "baseURL": "{env:MY_CLI_LLM_PROXY_URL}"
      },
}

The older models work correctly (as well as custom proxy url, since codex cli is working fine with it), but with Opencode, I face a tricky auth err.

Models in the config were added just to avoid any ambiguity

Plugins

none

OpenCode version

1.17.15

Steps to reproduce

  1. Pick up the GPT5.6 model under the ChatGPT subscription Auth
  2. Say hi

Screenshot and/or share link

No response

Operating System

Ubuntu 24

Terminal

iTerm2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions