Skip to main content

ModelInfoEntry

Struct ModelInfoEntry 

Source
pub struct ModelInfoEntry {
    pub name: &'static str,
    pub supports_vision: bool,
    pub supports_audio: bool,
    pub supports_video: bool,
    pub supports_pdf: bool,
    pub max_input_tokens: u32,
    pub max_output_tokens: u32,
    pub cost_input_x1000: u32,
    pub cost_output_x1000: u32,
    pub arena_overall: u16,
}
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. Detailed model information entry.

Integer encoding avoids floating-point in const context. Conversion to f32 happens at lookup time in lib.rs.

Fields§

§name: &'static str§supports_vision: bool§supports_audio: bool§supports_video: bool§supports_pdf: bool§max_input_tokens: u32§max_output_tokens: u32§cost_input_x1000: u32

Input cost USD per 1M tokens * 1000 (0 = unknown). e.g. 3000 = $3.00/M

§cost_output_x1000: u32

Output cost USD per 1M tokens * 1000 (0 = unknown).

§arena_overall: u16

Arena overall score 0-10000 (two decimal places * 100). 0 = unranked.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.