Larger rate limit integers (#16047)
Tokens per day may exceed the range of Postgres's 32-bit `integer` data type. Release Notes: - N/A Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
parent
0932818829
commit
423c7b999a
3 changed files with 10 additions and 6 deletions
|
@ -4,9 +4,9 @@ use std::str::FromStr;
|
|||
use strum::IntoEnumIterator as _;
|
||||
|
||||
pub struct ModelRateLimits {
|
||||
pub max_requests_per_minute: i32,
|
||||
pub max_tokens_per_minute: i32,
|
||||
pub max_tokens_per_day: i32,
|
||||
pub max_requests_per_minute: i64,
|
||||
pub max_tokens_per_minute: i64,
|
||||
pub max_tokens_per_day: i64,
|
||||
}
|
||||
|
||||
impl LlmDatabase {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue