Skip to content

Commit 4232e04

Browse files
committed
improve codex model list
1 parent ff0abac commit 4232e04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/opencode/src/plugin/codex.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
366366
"gpt-5.1-codex",
367367
])
368368
for (const modelId of Object.keys(provider.models)) {
369-
if (!allowedModels.has(modelId)) {
370-
delete provider.models[modelId]
371-
}
369+
if (modelId.includes("codex")) continue
370+
if (allowedModels.has(modelId)) continue
371+
delete provider.models[modelId]
372372
}
373373

374374
if (!provider.models["gpt-5.3-codex"]) {

0 commit comments

Comments
 (0)