Files
oh-my-pi/packages
Sunil Srivatsa f294d1b177 fix(auth): rotate when a ChatGPT account lacks the requested Codex model
A Codex request to a model the signed-in ChatGPT account is not entitled
to fails with "The '<model>' model is not supported when using Codex with
a ChatGPT account." That was classified as a plain provider error, so the
request failed outright even when a sibling account was signed in and
entitled to the model.

Classify that exact denial as an account-policy error, the same category
`cyber_policy` already uses, so the existing credential-rotation path can
reach an entitled account.

The match is deliberately narrow: it fires only for provider
`openai-codex`, only when the denied model in the message is the model that
was requested, and only for a bounded, non-null model identity. A denial
naming some other model does not trigger rotation, so an unrelated mention
cannot burn sibling credentials.
2026-08-17 15:07:53 -07:00
..
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-06 13:32:34 +02:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00
2026-08-17 22:29:25 +03:00