IntelligenceX
Class

ChatGptRateLimitWindow

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

Represents a rate limit window.

Inheritance

  • Object
  • ChatGptRateLimitWindow

Constructors

public ChatGptRateLimitWindow(Nullable<Double> usedPercent, Nullable<Int64> limitWindowSeconds, Nullable<Int64> resetAfterSeconds, Nullable<Int64> resetAt, JsonObject raw, JsonObject additional) #

Initializes a new rate limit window.

Parameters

usedPercent System.Nullable{System.Double}
limitWindowSeconds System.Nullable{System.Int64}
resetAfterSeconds System.Nullable{System.Int64}
resetAt System.Nullable{System.Int64}
raw IntelligenceX.Json.JsonObject
additional IntelligenceX.Json.JsonObject

Methods

public static ChatGptRateLimitWindow FromJson(JsonObject obj) #
Returns: ChatGptRateLimitWindow

Parses a rate limit window from JSON.

Parameters

obj IntelligenceX.Json.JsonObject
Source JSON object.

Returns

The parsed window or null.

public JsonObject ToJson() #
Returns: JsonObject

Serializes the window to a JSON object.

Properties

public Nullable<Double> UsedPercent { get; } #

Gets the percentage of usage consumed.

public Nullable<Int64> LimitWindowSeconds { get; } #

Gets the window length in seconds.

public Nullable<Int64> ResetAfterSeconds { get; } #

Gets the seconds remaining until reset.

public Nullable<Int64> ResetAtUnixSeconds { get; } #

Gets the reset time in Unix seconds.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject Additional { get; } #

Gets unrecognized fields from the payload.