pub struct ProjectRateLimit {
pub id: String,
pub model: String,
pub max_requests_per_1_minute: u64,
pub max_tokens_per_1_minute: u64,
pub max_images_per_1_minute: Option<u64>,
pub max_audio_megabytes_per_1_minute: Option<u64>,
pub max_requests_per_1_day: Option<u64>,
pub batch_1_day_max_input_tokens: Option<u64>,
}
Expand description
Represents a project rate limit config.
Fields§
§id: String
The identifier, which can be referenced in API endpoints.
model: String
The model this rate limit applies to.
max_requests_per_1_minute: u64
The maximum requests per minute.
max_tokens_per_1_minute: u64
The maximum tokens per minute.
max_images_per_1_minute: Option<u64>
The maximum images per minute. Only present for relevant models.
max_audio_megabytes_per_1_minute: Option<u64>
The maximum audio megabytes per minute. Only present for relevant models.
max_requests_per_1_day: Option<u64>
The maximum requests per day. Only present for relevant models.
batch_1_day_max_input_tokens: Option<u64>
The maximum batch input tokens per day. Only present for relevant models.
Implementations§
Source§impl ProjectRateLimit
impl ProjectRateLimit
Sourcepub fn builder() -> ProjectRateLimitBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> ProjectRateLimitBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building ProjectRateLimit
.
On the builder, call .id(...)
, .model(...)
, .max_requests_per_1_minute(...)
, .max_tokens_per_1_minute(...)
, .max_images_per_1_minute(...)
(optional), .max_audio_megabytes_per_1_minute(...)
(optional), .max_requests_per_1_day(...)
(optional), .batch_1_day_max_input_tokens(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ProjectRateLimit
.
Trait Implementations§
Source§impl Clone for ProjectRateLimit
impl Clone for ProjectRateLimit
Source§fn clone(&self) -> ProjectRateLimit
fn clone(&self) -> ProjectRateLimit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more