pub struct ConvertedEntry {Show 14 fields
pub litellm_id: String,
pub canonical_id: String,
pub provider: String,
pub mode: String,
pub max_input_tokens: Option<u32>,
pub max_output_tokens: Option<u32>,
pub input_cost_per_token: f64,
pub output_cost_per_token: f64,
pub cache_read_per_token: Option<f64>,
pub cache_write_per_token: Option<f64>,
pub reasoning_per_token: Option<f64>,
pub image_per_token: Option<f64>,
pub abilities: Vec<&'static str>,
pub deprecation_date: Option<String>,
}Expand description
Intermediate representation used by both build.rs and runtime.
Fields§
§litellm_id: StringModel id exactly as LiteLLM keys it, provider prefix included.
canonical_id: StringModel id with the provider prefix stripped.
provider: StringCanonical provider slug.
mode: StringWhat the model does, as a canonical mode string.
max_input_tokens: Option<u32>Largest prompt the model accepts, in tokens.
max_output_tokens: Option<u32>Largest completion the model produces, in tokens.
input_cost_per_token: f64USD per input token.
output_cost_per_token: f64USD per output token.
cache_read_per_token: Option<f64>USD per cached input token read.
cache_write_per_token: Option<f64>USD per input token written to the cache.
reasoning_per_token: Option<f64>USD per reasoning token, where billed separately.
image_per_token: Option<f64>USD per image token.
abilities: Vec<&'static str>Capability names this model advertises.
deprecation_date: Option<String>Retirement date, as YYYY-MM-DD.
Trait Implementations§
Source§impl Clone for ConvertedEntry
impl Clone for ConvertedEntry
Auto Trait Implementations§
impl Freeze for ConvertedEntry
impl RefUnwindSafe for ConvertedEntry
impl Send for ConvertedEntry
impl Sync for ConvertedEntry
impl Unpin for ConvertedEntry
impl UnsafeUnpin for ConvertedEntry
impl UnwindSafe for ConvertedEntry
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