pub struct ModelInfo {
pub name: String,
pub display_name: String,
pub description: Option<String>,
pub capabilities: LLMCapabilities,
pub version: Option<String>,
pub pricing: Option<ModelPricing>,
pub available: bool,
}
Expand description
Information about a specific model
Fields§
§name: String
Model name/identifier
display_name: String
Human-readable display name
description: Option<String>
Model description
capabilities: LLMCapabilities
Model capabilities
version: Option<String>
Model version
pricing: Option<ModelPricing>
Model pricing (tokens per dollar)
available: bool
Whether the model is available
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelInfo
impl<'de> Deserialize<'de> for ModelInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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