IntelligenceX
Class

ChatGptRateLimitStatus

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

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: ChatGptRateLimitStatus

Parses a rate limit status from JSON.

Parameters

obj IntelligenceX.Json.JsonObject
Source JSON object.

Returns

The parsed status or null.

public JsonObject ToJson() #
Returns: JsonObject

Serializes the status to a JSON 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.