pub struct Pricing {
pub input: f64,
pub output: f64,
pub cache_read: f64,
pub cache_write: f64,
}Expand description
USD per million tokens. Prices change often, so Cairn never hardcodes
them; set them from your provider’s current price sheet. A model that is
genuinely free should say so explicitly with Pricing::new(0.0, 0.0).
Fields§
§input: f64§output: f64§cache_read: f64§cache_write: f64Implementations§
Trait Implementations§
impl Copy for Pricing
impl StructuralPartialEq for Pricing
Auto Trait Implementations§
impl Freeze for Pricing
impl RefUnwindSafe for Pricing
impl Send for Pricing
impl Sync for Pricing
impl Unpin for Pricing
impl UnsafeUnpin for Pricing
impl UnwindSafe for Pricing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more