API Reference
Class
ChatGptRateLimitStatus
Represents rate limit status information.
Inheritance
- Object
- ChatGptRateLimitStatus
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property ChatGptNamedRateLimit.RateLimit
- Method ChatGptRateLimitStatus.FromJson
- Property ChatGptUsageSnapshot.RateLimit
Accepted by parameters
- Constructor ChatGptNamedRateLimit.ChatGptNamedRateLimit
- Constructor ChatGptUsageSnapshot.ChatGptUsageSnapshot
Constructors
public ChatGptRateLimitStatus(Boolean allowed, Boolean limitReached, ChatGptRateLimitWindow primary, ChatGptRateLimitWindow secondary, JsonObject raw, JsonObject additional) #Initializes a new rate limit status.
Parameters
- allowed System.Boolean
- limitReached System.Boolean
- primary IntelligenceX.OpenAI.Usage.ChatGptRateLimitWindow
- secondary IntelligenceX.OpenAI.Usage.ChatGptRateLimitWindow
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject
Methods
public static ChatGptRateLimitStatus FromJson(JsonObject obj) #Returns:
ChatGptRateLimitStatusParses a rate limit status from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed status or null.
Inherited Methods
Properties
public Boolean Allowed { get; } #Gets a value indicating whether requests are allowed.
public Boolean LimitReached { get; } #Gets a value indicating whether the limit has been reached.
public ChatGptRateLimitWindow PrimaryWindow { get; } #Gets the primary rate limit window.
public ChatGptRateLimitWindow SecondaryWindow { get; } #Gets the secondary rate limit window.
public JsonObject Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.