pub struct ModelBilling {
pub discount_percent: Option<i32>,
pub multiplier: Option<f64>,
pub promo: Option<ModelBillingPromo>,
pub token_prices: Option<ModelBillingTokenPrices>,
}Expand description
Re-exports of generated protocol types that are part of the SDK’s
public API surface. The canonical definitions live in
crate::rpc; they live here so the crate-root
pub use types::* surfaces them alongside hand-written SDK types.
Billing information
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§discount_percent: Option<i32>Whole-number percentage discount (0-100) applied to usage billed through this model. Populated for the synthetic auto model, where requests routed by auto-mode are billed at a reduced rate; absent for concrete models.
multiplier: Option<f64>Billing cost multiplier relative to the base rate
promo: Option<ModelBillingPromo>Active server-driven promotion for this model, if any. Present when the model is being promoted with a time-boxed discount.
token_prices: Option<ModelBillingTokenPrices>Token-level pricing information for this model
Trait Implementations§
Source§impl Clone for ModelBilling
impl Clone for ModelBilling
Source§fn clone(&self) -> ModelBilling
fn clone(&self) -> ModelBilling
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more