pub struct LanguageModelPricing {
    pub input_cost_per_text_token: Option<f64>,
    pub input_cost_per_cached_text_token: Option<f64>,
    pub output_cost_per_text_token: Option<f64>,
    pub input_cost_per_audio_token: Option<f64>,
    pub input_cost_per_cached_audio_token: Option<f64>,
    pub output_cost_per_audio_token: Option<f64>,
    pub input_cost_per_image_token: Option<f64>,
    pub input_cost_per_cached_image_token: Option<f64>,
    pub output_cost_per_image_token: Option<f64>,
}Expand description
A metadata property that describes the pricing of the model.
Fields§
§input_cost_per_text_token: Option<f64>The cost in USD per single text token for input.
input_cost_per_cached_text_token: Option<f64>The cost in USD per single cached text token for input.
output_cost_per_text_token: Option<f64>The cost in USD per single text token for output.
input_cost_per_audio_token: Option<f64>The cost in USD per single audio token for input.
input_cost_per_cached_audio_token: Option<f64>The cost in USD per single cached audio token for input.
output_cost_per_audio_token: Option<f64>The cost in USD per single audio token for output.
input_cost_per_image_token: Option<f64>The cost in USD per single image token for input.
input_cost_per_cached_image_token: Option<f64>The cost in USD per single cached image token for input.
output_cost_per_image_token: Option<f64>The cost in USD per single image token for output.
Trait Implementations§
Source§impl Clone for LanguageModelPricing
 
impl Clone for LanguageModelPricing
Source§fn clone(&self) -> LanguageModelPricing
 
fn clone(&self) -> LanguageModelPricing
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 moreSource§impl Debug for LanguageModelPricing
 
impl Debug for LanguageModelPricing
Source§impl<'de> Deserialize<'de> for LanguageModelPricing
 
impl<'de> Deserialize<'de> for LanguageModelPricing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LanguageModelPricing
impl RefUnwindSafe for LanguageModelPricing
impl Send for LanguageModelPricing
impl Sync for LanguageModelPricing
impl Unpin for LanguageModelPricing
impl UnwindSafe for LanguageModelPricing
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