20 lines
686 B
Rust
20 lines
686 B
Rust
pub mod db;
|
|
mod token;
|
|
|
|
use crate::Cents;
|
|
|
|
pub use token::*;
|
|
|
|
pub const AGENT_EXTENDED_TRIAL_FEATURE_FLAG: &str = "agent-extended-trial";
|
|
|
|
/// The name of the feature flag that bypasses the account age check.
|
|
pub const BYPASS_ACCOUNT_AGE_CHECK_FEATURE_FLAG: &str = "bypass-account-age-check";
|
|
|
|
/// The minimum account age an account must have in order to use the LLM service.
|
|
pub const MIN_ACCOUNT_AGE_FOR_LLM_USE: chrono::Duration = chrono::Duration::days(30);
|
|
|
|
/// The default value to use for maximum spend per month if the user did not
|
|
/// explicitly set a maximum spend.
|
|
///
|
|
/// Used to prevent surprise bills.
|
|
pub const DEFAULT_MAX_MONTHLY_SPEND: Cents = Cents::from_dollars(10);
|