mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
[codex] Tolerate unknown usage nudge actions
This commit is contained in:
@@ -19,10 +19,15 @@ pub struct UsageLimitNudge {
|
||||
pub action: UsageLimitNudgeAction,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||
#[derive(
|
||||
Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
|
||||
)]
|
||||
pub enum UsageLimitNudgeAction {
|
||||
#[serde(rename = "add_credits")]
|
||||
AddCredits,
|
||||
#[serde(rename = "upgrade")]
|
||||
Upgrade,
|
||||
#[serde(rename = "unknown", other)]
|
||||
#[default]
|
||||
Unknown,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user