pub struct ModelPrice {
pub input_cost_per_million: f64,
pub output_cost_per_million: f64,
pub cache_read_cost_per_million: Option<f64>,
pub cache_write_cost_per_million: Option<f64>,
}
Expand description
Pricing for a specific model
Fields§
§input_cost_per_million: f64
Cost per 1M input tokens in USD
output_cost_per_million: f64
Cost per 1M output tokens in USD
cache_read_cost_per_million: Option<f64>
Cost per 1M cache read tokens in USD (if applicable)
cache_write_cost_per_million: Option<f64>
Cost per 1M cache write tokens in USD (if applicable)
Trait Implementations§
Source§impl Clone for ModelPrice
impl Clone for ModelPrice
Source§fn clone(&self) -> ModelPrice
fn clone(&self) -> ModelPrice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ModelPrice
impl RefUnwindSafe for ModelPrice
impl Send for ModelPrice
impl Sync for ModelPrice
impl Unpin for ModelPrice
impl UnwindSafe for ModelPrice
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