diff options
| author | GitHub Action <[email protected]> | 2026-01-24 05:12:45 +0000 |
|---|---|---|
| committer | GitHub Action <[email protected]> | 2026-01-24 05:12:45 +0000 |
| commit | e2d8310b76aebf0b0b47256da343079ce843315f (patch) | |
| tree | 050e573df251c02f181517720d1bee907e3b66fc | |
| parent | 1d09343f17409d1ddec0b28a47c70f6da25f9f3c (diff) | |
| download | opencode-e2d8310b76aebf0b0b47256da343079ce843315f.tar.gz opencode-e2d8310b76aebf0b0b47256da343079ce843315f.zip | |
chore: generate
| -rw-r--r-- | packages/opencode/src/plugin/codex.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.ts index 4e470a554..198e8ce25 100644 --- a/packages/opencode/src/plugin/codex.ts +++ b/packages/opencode/src/plugin/codex.ts @@ -355,7 +355,13 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> { if (auth.type !== "oauth") return {} // Filter models to only allowed Codex models for OAuth - const allowedModels = new Set(["gpt-5.1-codex-max", "gpt-5.1-codex-mini", "gpt-5.2", "gpt-5.2-codex", "gpt-5.1-codex"]) + const allowedModels = new Set([ + "gpt-5.1-codex-max", + "gpt-5.1-codex-mini", + "gpt-5.2", + "gpt-5.2-codex", + "gpt-5.1-codex", + ]) for (const modelId of Object.keys(provider.models)) { if (!allowedModels.has(modelId)) { delete provider.models[modelId] |
