collab: Add LLM request overage columns to billing_preferences
(#29446)
This PR adds two new columns to the `billing_preferences` table to allow users to opt in to overages on LLM requests. Release Notes: - N/A
This commit is contained in:
parent
12c645e154
commit
8b910e1cd9
2 changed files with 5 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
alter table billing_preferences
|
||||||
|
add column model_request_overages_enabled bool not null default false,
|
||||||
|
add column model_request_overages_spend_limit_in_cents integer not null default 0;
|
|
@ -9,6 +9,8 @@ pub struct Model {
|
||||||
pub created_at: DateTime,
|
pub created_at: DateTime,
|
||||||
pub user_id: UserId,
|
pub user_id: UserId,
|
||||||
pub max_monthly_llm_usage_spending_in_cents: i32,
|
pub max_monthly_llm_usage_spending_in_cents: i32,
|
||||||
|
pub model_request_overages_enabled: bool,
|
||||||
|
pub model_request_overages_spend_limit_in_cents: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue