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: u32Input cost USD per 1M tokens * 1000 (0 = unknown). e.g. 3000 = $3.00/M
cost_output_x1000: u32Output cost USD per 1M tokens * 1000 (0 = unknown).
arena_overall: u16Arena overall score 0-10000 (two decimal places * 100). 0 = unranked.
Auto Trait Implementations§
impl Freeze for ModelInfoEntry
impl RefUnwindSafe for ModelInfoEntry
impl Send for ModelInfoEntry
impl Sync for ModelInfoEntry
impl Unpin for ModelInfoEntry
impl UnwindSafe for ModelInfoEntry
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