mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
[VSCE-147] Fetch Initial Rate Limit Usage
This commit is contained in:
@@ -602,6 +602,10 @@ pub struct TokenCountEvent {
|
||||
pub struct RateLimitSnapshot {
|
||||
pub primary: Option<RateLimitWindow>,
|
||||
pub secondary: Option<RateLimitWindow>,
|
||||
#[serde(default)]
|
||||
pub allowed: Option<bool>,
|
||||
#[serde(default)]
|
||||
pub limit_reached: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, TS)]
|
||||
|
||||
Reference in New Issue
Block a user