API Reference
Class
ChatGptRateLimitStatus
Represents rate limit status information.
Inheritance
- Object
- ChatGptRateLimitStatus
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Property ChatGptNamedRateLimit.RateLimit
- Method ChatGptRateLimitStatus.FromJson
- Property ChatGptUsageSnapshot.RateLimit
Accepted by parameters 2
- 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:
ChatGptRateLimitStatus?Parses a rate limit status from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject?
- Source JSON object.
Returns
The parsed status or null.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
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? Additional { get; } #Gets unrecognized fields from the payload.