Skip to content

RateConfigDict

Dictionary Type

RateConfigDict

Bases: TypedDict

Dictionary form of RateConfig.

Attributes

period instance-attribute
period: Required[str]

The time period for the rate limit. Valid values:

  • second---Measures the rate limit over a one-second window.

  • minute---Measures the rate limit over a one-minute window.

rate instance-attribute
rate: Required[float]

The rate value for the limit. For request limits, this is the number of requests allowed per period. For token limits, this is the number of tokens allowed per period. For connection limits, this is the number of concurrent connections allowed.