pub struct ModelPricing {
pub input_per_1m: f64,
pub output_per_1m: f64,
pub cached_input_per_1m: Option<f64>,
pub cache_write_per_1m: Option<f64>,
}Expand description
Exact per-1M-token prices for a model.
Fields§
§input_per_1m: f64Input (prompt) price per 1M tokens.
output_per_1m: f64Output (completion) price per 1M tokens.
cached_input_per_1m: Option<f64>Cached-input (cache read) price per 1M tokens, when offered.
cache_write_per_1m: Option<f64>Cache-write (cache creation) price per 1M tokens, when offered.
Trait Implementations§
Source§impl Clone for ModelPricing
impl Clone for ModelPricing
impl Copy for ModelPricing
Source§impl Debug for ModelPricing
impl Debug for ModelPricing
Source§impl PartialEq for ModelPricing
impl PartialEq for ModelPricing
impl StructuralPartialEq for ModelPricing
Auto Trait Implementations§
impl Freeze for ModelPricing
impl RefUnwindSafe for ModelPricing
impl Send for ModelPricing
impl Sync for ModelPricing
impl Unpin for ModelPricing
impl UnsafeUnpin for ModelPricing
impl UnwindSafe for ModelPricing
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