class

OpenAI::ProjectRateLimit

Inherits JSON::Serializable < Reference < Object

Represents a project rate limit config.

Constructors

new(object : ProjectRateLimitObject = ProjectRateLimitObject::ProjectRateLimit, id : String = "", model : String = "", max_requests_per_1_minute : Int64 = 0, max_tokens_per_1_minute : Int64 = 0, max_images_per_1_minute : Int64 | Nil = nil, max_audio_megabytes_per_1_minute : Int64 | Nil = nil, max_requests_per_1_day : Int64 | Nil = nil, batch_1_day_max_input_tokens : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

batch_1_day_max_input_tokens

The maximum batch input tokens per day. Only present for relevant models.

Source
batch_1_day_max_input_tokens=(batch_1_day_max_input_tokens : Int64 | Nil)

The maximum batch input tokens per day. Only present for relevant models.

Source
id

The identifier, which can be referenced in API endpoints.

Source
id=(id : String)

The identifier, which can be referenced in API endpoints.

Source
max_audio_megabytes_per_1_minute

The maximum audio megabytes per minute. Only present for relevant models.

Source
max_audio_megabytes_per_1_minute=(max_audio_megabytes_per_1_minute : Int64 | Nil)

The maximum audio megabytes per minute. Only present for relevant models.

Source
max_images_per_1_minute

The maximum images per minute. Only present for relevant models.

Source
max_images_per_1_minute=(max_images_per_1_minute : Int64 | Nil)

The maximum images per minute. Only present for relevant models.

Source
max_requests_per_1_day

The maximum requests per day. Only present for relevant models.

Source
max_requests_per_1_day=(max_requests_per_1_day : Int64 | Nil)

The maximum requests per day. Only present for relevant models.

Source
max_requests_per_1_minute

The maximum requests per minute.

Source
max_requests_per_1_minute=(max_requests_per_1_minute : Int64)

The maximum requests per minute.

Source
max_tokens_per_1_minute

The maximum tokens per minute.

Source
max_tokens_per_1_minute=(max_tokens_per_1_minute : Int64)

The maximum tokens per minute.

Source
model

The model this rate limit applies to.

Source
model=(model : String)

The model this rate limit applies to.

Source
object

The object type, which is always project.rate_limit

Source
object=(object : ProjectRateLimitObject)

The object type, which is always project.rate_limit

Source