pub struct ModelPricing {
pub input_cost_per_m_tokens: Option<f32>,
pub output_cost_per_m_tokens: Option<f32>,
}Expand description
Re-exports from llm_models_spider for auto-updated model intelligence.
This uses the llm_models_spider crate which is automatically updated
via GitHub Actions to fetch the latest model capabilities from
OpenRouter, LiteLLM, and Chatbot Arena.
Pricing in USD.
Fields§
§input_cost_per_m_tokens: Option<f32>Cost per 1 million input tokens in USD.
output_cost_per_m_tokens: Option<f32>Cost per 1 million output tokens in USD.
Trait Implementations§
Source§impl Clone for ModelPricing
impl Clone for ModelPricing
Source§fn clone(&self) -> ModelPricing
fn clone(&self) -> ModelPricing
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 ModelPricing
impl Debug for ModelPricing
Source§impl PartialEq for ModelPricing
impl PartialEq for ModelPricing
impl Copy 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 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