summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-04-23 00:29:56 -0400
committerGitHub <[email protected]>2026-04-23 00:29:56 -0400
commit97300085437899af8af6c2bbf6ebc6bdab110174 (patch)
tree4df31730355aa2984704ec76c4cd097182d5a652
parentac26394fcb280592a8ecddf903a3a7116c841f39 (diff)
downloadopencode-97300085437899af8af6c2bbf6ebc6bdab110174.tar.gz
opencode-97300085437899af8af6c2bbf6ebc6bdab110174.zip
tweak: codex model logic (#23925)
-rw-r--r--packages/opencode/src/plugin/codex.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.ts
index c61cb7850..e05111fc6 100644
--- a/packages/opencode/src/plugin/codex.ts
+++ b/packages/opencode/src/plugin/codex.ts
@@ -378,6 +378,8 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
for (const [modelId, model] of Object.entries(provider.models)) {
if (modelId.includes("codex")) continue
if (allowedModels.has(model.api.id)) continue
+ const match = model.api.id.match(/^gpt-(\d+\.\d+)/)
+ if (match && parseFloat(match[1]) > 5.4) continue
delete provider.models[modelId]
}