fix(opencode): filter unsupported GPT-5.6 OAuth alias (#36621)

This commit is contained in:
Aiden Cline 2026-07-13 00:23:28 -05:00 committed by GitHub
commit f47684787a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -285,6 +285,7 @@ export async function CodexAuthPlugin(input: PluginInput, options: CodexAuthPlug
.filter(([, model]) => {
if (ALLOWED_MODELS.has(model.api.id)) return true
if (DISALLOWED_MODELS.has(model.api.id)) return false
if (model.api.id === "gpt-5.6") return false
const match = model.api.id.match(/^gpt-(\d+\.\d+)/)
return match ? parseFloat(match[1]) > 5.4 : false
})