summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel Olowoniyi <[email protected]>2026-01-24 06:11:54 +0100
committerGitHub <[email protected]>2026-01-24 00:11:54 -0500
commit1d09343f17409d1ddec0b28a47c70f6da25f9f3c (patch)
tree88abd2c109f84484abb71fec3eab13208f4ec9a0
parent6633f0e6fa3e302930df354a12ede4649b91fe35 (diff)
downloadopencode-1d09343f17409d1ddec0b28a47c70f6da25f9f3c.tar.gz
opencode-1d09343f17409d1ddec0b28a47c70f6da25f9f3c.zip
fix: allow gpt-5.1-codex model in codex auth pluginFixes (#10181)
-rw-r--r--packages/opencode/src/plugin/codex.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.ts
index cd9eaea45..4e470a554 100644
--- a/packages/opencode/src/plugin/codex.ts
+++ b/packages/opencode/src/plugin/codex.ts
@@ -355,7 +355,7 @@ 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"])
+ 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]