pub struct Pricing {
pub model: String,
pub prompt_cost_per_1k: f64,
pub completion_cost_per_1k: f64,
}Expand description
Pricing information for a model.
Fields§
§model: StringModel name
prompt_cost_per_1k: f64Cost per 1000 prompt tokens (USD)
completion_cost_per_1k: f64Cost per 1000 completion tokens (USD)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pricing
impl RefUnwindSafe for Pricing
impl Send for Pricing
impl Sync for Pricing
impl Unpin 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