IntelligenceX

API Reference

Class

ChatGptRateLimitStatus

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

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.

Accepted by parameters 2

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 requiredposition: 0
limitReached System.Boolean requiredposition: 1
primary IntelligenceX.OpenAI.Usage.ChatGptRateLimitWindow? requiredposition: 2
secondary IntelligenceX.OpenAI.Usage.ChatGptRateLimitWindow? requiredposition: 3
raw IntelligenceX.Json.JsonObject requiredposition: 4
additional IntelligenceX.Json.JsonObject? requiredposition: 5

Methods

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

Parses a rate limit status from JSON.

Parameters

obj IntelligenceX.Json.JsonObject? requiredposition: 0
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.