feat: refactor CodexAuth so invalid state cannot be represented

This commit is contained in:
Michael Bolin
2026-01-29 22:59:37 -08:00
parent a9cf449a80
commit 4f2a604b04
13 changed files with 286 additions and 165 deletions
@@ -24,10 +24,6 @@ impl GitSha {
}
/// Authentication mode for OpenAI-backed providers.
///
/// This is used internally to determine the base URL for generating responses, and to gate
/// ChatGPT-only behaviors like rate limits and available models (as opposed to API key-based
/// auth).
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Display, JsonSchema, TS)]
#[serde(rename_all = "lowercase")]
pub enum AuthMode {