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.

interface RateLimitsUpdatedEvent {
    event_id: string;
    rate_limits: RateLimit[];
    type: "rate_limits.updated";
}

Properties

event_id: string

The unique ID of the server event.

rate_limits: RateLimit[]

List of rate limit information.

type: "rate_limits.updated"

The event type, must be rate_limits.updated.