Class
ChatGptRateLimitStatus
Represents rate limit status information.
Inheritance
- Object
- ChatGptRateLimitStatus
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
public override 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 Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.