mirror of
https://github.com/openai/codex.git
synced 2026-10-31 19:28:49 +00:00
feat: refactor CodexAuth so invalid state cannot be represented
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user