opencode-openai-codex-auth icon indicating copy to clipboard operation
opencode-openai-codex-auth copied to clipboard

Hey GPT 5.1 Just Dropped

Open CyberBoyAyush opened this issue 1 year ago • 10 comments

OpenAI just dropped all its GPT5.1 family models in here. When can we expect the support for it

CyberBoyAyush avatar Nov 13 '25 19:11 CyberBoyAyush

it looks like it already works out of the box, just add the configuration to your opencode.json like this:

    "gpt-5.1-codex-medium": {
      "name": "GPT 5.1 Codex Medium (OAuth)",
      "limit": {
        "context": 272000,
        "output": 128000
      },
      "options": {
        "reasoningEffort": "medium",
        "reasoningSummary": "auto",
        "textVerbosity": "medium",
        "include": [
          "reasoning.encrypted_content"
        ],
        "store": false
      }
    },
    "gpt-5.1-codex-high": {
      "name": "GPT 5.1 Codex High (OAuth)",
      "limit": {
        "context": 272000,
        "output": 128000
      },
      "options": {
        "reasoningEffort": "high",
        "reasoningSummary": "detailed",
        "textVerbosity": "medium",
        "include": [
          "reasoning.encrypted_content"
        ],
        "store": false
      }
    },
    "gpt-5.1-codex-mini-medium": {
      "name": "GPT 5.1 Codex Mini Medium (OAuth)",
      "limit": {
        "context": 200000,
        "output": 100000
      },
      "options": {
        "reasoningEffort": "medium",
        "reasoningSummary": "auto",
        "textVerbosity": "medium",
        "include": [
          "reasoning.encrypted_content"
        ],
        "store": false
      }
    },
    "gpt-5.1-codex-mini-high": {
      "name": "GPT 5.1 Codex Mini High (OAuth)",
      "limit": {
        "context": 200000,
        "output": 100000
      },

totally-tim avatar Nov 13 '25 21:11 totally-tim

thx tim, that worked!

iamhenry avatar Nov 13 '25 22:11 iamhenry

Nice one, seems like gpt-5.1-codex-mini-high has been truncated though

This will correct the end of your code :

"gpt-5.1-codex-mini-high": { "name": "GPT 5.1 Codex Mini High (OAuth)", "limit": { "context": 200000, "output": 100000 }, "options": { "reasoningEffort": "high", "reasoningSummary": "detailed", "textVerbosity": "medium", "include": [ "reasoning.encrypted_content" ], "store": false } }

Jeremie-m avatar Nov 13 '25 23:11 Jeremie-m

Nice one, seems like gpt-5.1-codex-mini-high has been truncated though

This will correct the end of your code :

"gpt-5.1-codex-mini-high": { "name": "GPT 5.1 Codex Mini High (OAuth)", "limit": { "context": 200000, "output": 100000 }, "options": { "reasoningEffort": "high", "reasoningSummary": "detailed", "textVerbosity": "medium", "include": [ "reasoning.encrypted_content" ], "store": false } }

good catch thanks!

totally-tim avatar Nov 14 '25 05:11 totally-tim

Thankyou

CyberBoyAyush avatar Nov 14 '25 13:11 CyberBoyAyush

Hey guys, that actually isn't using the 5.1 models, it'll fallback to GPT 5, they require code level changes as the models use specific keys in the API requests

I'll put out a new release tonight with the updates

numman-ali avatar Nov 14 '25 13:11 numman-ali

Hey guys, that actually isn't using the 5.1 models, it'll fallback to GPT 5, they require code level changes as the models use specific keys in the API requests

I'll put out a new release tonight with the updates

Yes I tried it and felt the same. I was about to tag you in it and ask you about it. Thanks man

CyberBoyAyush avatar Nov 14 '25 17:11 CyberBoyAyush

gpt 5.1 is a downgrade tho and it is not a cheap downgrade

Kreijstal avatar Nov 16 '25 09:11 Kreijstal

Hey @numman-ali, when can we expect the fix? I badly wanted to use it in opencode.

CyberBoyAyush avatar Nov 16 '25 13:11 CyberBoyAyush

Released

Refresh plugin with

(cd ~ && sed -i.bak '/"opencode-openai-codex-auth"/d' .cache/opencode/package.json && rm -rf .cache/opencode/node_modules/opencode-openai-codex-auth)

Update config with:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "opencode-openai-codex-auth"
  ],
  "provider": {
    "openai": {
      "options": {
        "reasoningEffort": "medium",
        "reasoningSummary": "auto",
        "textVerbosity": "medium",
        "include": [
          "reasoning.encrypted_content"
        ],
        "store": false
      },
      "models": {
        "gpt-5.1-codex-low": {
          "name": "GPT 5.1 Codex Low (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "low",
            "reasoningSummary": "auto",
            "textVerbosity": "medium",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        },
        "gpt-5.1-codex-medium": {
          "name": "GPT 5.1 Codex Medium (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "medium",
            "reasoningSummary": "auto",
            "textVerbosity": "medium",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        },
        "gpt-5.1-codex-high": {
          "name": "GPT 5.1 Codex High (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "high",
            "reasoningSummary": "detailed",
            "textVerbosity": "medium",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        },
        "gpt-5.1-codex-mini-medium": {
          "name": "GPT 5.1 Codex Mini Medium (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "medium",
            "reasoningSummary": "auto",
            "textVerbosity": "medium",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        },
        "gpt-5.1-codex-mini-high": {
          "name": "GPT 5.1 Codex Mini High (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "high",
            "reasoningSummary": "detailed",
            "textVerbosity": "medium",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        },
        "gpt-5.1-low": {
          "name": "GPT 5.1 Low (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "low",
            "reasoningSummary": "auto",
            "textVerbosity": "low",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        },
        "gpt-5.1-medium": {
          "name": "GPT 5.1 Medium (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "medium",
            "reasoningSummary": "auto",
            "textVerbosity": "medium",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        },
        "gpt-5.1-high": {
          "name": "GPT 5.1 High (OAuth)",
          "limit": {
            "context": 272000,
            "output": 128000
          },
          "options": {
            "reasoningEffort": "high",
            "reasoningSummary": "detailed",
            "textVerbosity": "high",
            "include": [
              "reasoning.encrypted_content"
            ],
            "store": false
          }
        }
      }
    }
  }
}

numman-ali avatar Nov 16 '25 21:11 numman-ali