IntelligenceX

API Reference

Class

ChatGptRateLimitWindow

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

Represents a rate limit window.

Inheritance

  • Object
  • ChatGptRateLimitWindow

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.

Accepted by parameters 2

Constructors

public ChatGptRateLimitWindow(Double? usedPercent, Int64? limitWindowSeconds, Int64? resetAfterSeconds, Int64? resetAt, JsonObject raw, JsonObject? additional) #

Initializes a new rate limit window.

Parameters

usedPercent System.Double? requiredposition: 0
limitWindowSeconds System.Int64? requiredposition: 1
resetAfterSeconds System.Int64? requiredposition: 2
resetAt System.Int64? requiredposition: 3
raw IntelligenceX.Json.JsonObject requiredposition: 4
additional IntelligenceX.Json.JsonObject? requiredposition: 5

Methods

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

Parses a rate limit window from JSON.

Parameters

obj IntelligenceX.Json.JsonObject? requiredposition: 0
Source JSON object.

Returns

The parsed window or null.

public JsonObject ToJson() #
Returns: JsonObject

Serializes the window to a JSON object.

Properties

public Double? UsedPercent { get; } #

Gets the percentage of usage consumed.

public Int64? LimitWindowSeconds { get; } #

Gets the window length in seconds.

public Int64? ResetAfterSeconds { get; } #

Gets the seconds remaining until reset.

public 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.