diff options
| author | Aiden Cline <[email protected]> | 2026-04-23 00:29:56 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-23 00:29:56 -0400 |
| commit | 97300085437899af8af6c2bbf6ebc6bdab110174 (patch) | |
| tree | 4df31730355aa2984704ec76c4cd097182d5a652 | |
| parent | ac26394fcb280592a8ecddf903a3a7116c841f39 (diff) | |
| download | opencode-97300085437899af8af6c2bbf6ebc6bdab110174.tar.gz opencode-97300085437899af8af6c2bbf6ebc6bdab110174.zip | |
tweak: codex model logic (#23925)
| -rw-r--r-- | packages/opencode/src/plugin/codex.ts | 2 |
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] } |
