pub struct ModelPricing {
pub prompt_price_per_1k: f64,
pub completion_price_per_1k: f64,
}Expand description
Model pricing (per 1K tokens, USD)
Fields§
§prompt_price_per_1k: f64Per-1K prompt token price (USD)
completion_price_per_1k: f64Per-1K completion token price (USD)
Implementations§
Source§impl ModelPricing
impl ModelPricing
Sourcepub fn gpt4o_mini() -> Self
pub fn gpt4o_mini() -> Self
gpt-4o-mini pricing (USD / 1K tokens)
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