fix: allow gpt-5.1-codex model in codex auth pluginFixes (#10181)

This commit is contained in:
Daniel Olowoniyi
2026-01-24 06:11:54 +01:00
committed by GitHub
parent 6633f0e6fa
commit 1d09343f17

View File

@@ -355,7 +355,7 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
if (auth.type !== "oauth") return {}
// Filter models to only allowed Codex models for OAuth
const allowedModels = new Set(["gpt-5.1-codex-max", "gpt-5.1-codex-mini", "gpt-5.2", "gpt-5.2-codex"])
const allowedModels = new Set(["gpt-5.1-codex-max", "gpt-5.1-codex-mini", "gpt-5.2", "gpt-5.2-codex", "gpt-5.1-codex"])
for (const modelId of Object.keys(provider.models)) {
if (!allowedModels.has(modelId)) {
delete provider.models[modelId]