pub struct ModelInfo {
pub id: String,
pub provider: String,
pub name: String,
pub context_length: u32,
pub input_cost_per_1k: Option<f64>,
pub output_cost_per_1k: Option<f64>,
pub supports_tools: bool,
pub supports_vision: bool,
pub supports_streaming: bool,
}Expand description
Model information for routing and selection.
Fields§
§id: StringModel identifier
provider: StringProvider name
name: StringHuman-readable name
context_length: u32Maximum context length in tokens
input_cost_per_1k: Option<f64>Cost per 1K input tokens (in USD)
output_cost_per_1k: Option<f64>Cost per 1K output tokens (in USD)
supports_tools: boolWhether the model supports tools
supports_vision: boolWhether the model supports vision
supports_streaming: boolWhether the model supports streaming
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnwindSafe for ModelInfo
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