class

OpenAI::RealtimeServerEventRateLimitsUpdated

Inherits JSON::Serializable < Reference < Object

Emitted at the beginning of a Response to indicate the updated rate limits. When a Response is created some tokens will be "reserved" for the output tokens, the rate limits shown here reflect that reservation, which is then adjusted accordingly once the Response is completed.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, rate_limits : Array(RealtimeServerEventRateLimitsUpdatedRateLimitsItem) = [] of RealtimeServerEventRateLimitsUpdatedRateLimitsItem)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

event_id

The unique ID of the server event.

Source
event_id=(event_id : String)

The unique ID of the server event.

Source
rate_limits

List of rate limit information.

Source
rate_limits=(rate_limits : Array(RealtimeServerEventRateLimitsUpdatedRateLimitsItem))

List of rate limit information.

Source
type_value

The event type, must be rate_limits.updated.

Source
type_value=(type_value : Hash(String, JSON::Any))

The event type, must be rate_limits.updated.

Source