fix(opencode): filter unsupported GPT-5.6 OAuth alias (#36621)
This commit is contained in:
@@ -285,6 +285,7 @@ export async function CodexAuthPlugin(input: PluginInput, options: CodexAuthPlug
|
|||||||
.filter(([, model]) => {
|
.filter(([, model]) => {
|
||||||
if (ALLOWED_MODELS.has(model.api.id)) return true
|
if (ALLOWED_MODELS.has(model.api.id)) return true
|
||||||
if (DISALLOWED_MODELS.has(model.api.id)) return false
|
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+)/)
|
const match = model.api.id.match(/^gpt-(\d+\.\d+)/)
|
||||||
return match ? parseFloat(match[1]) > 5.4 : false
|
return match ? parseFloat(match[1]) > 5.4 : false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user