pub struct Model {
pub id: String,
pub name: String,
pub description: Option<String>,
pub context_length: usize,
pub pricing: ModelPricing,
pub top_provider: Option<TopProvider>,
pub architecture: Option<ModelArchitecture>,
}Expand description
Model information from OpenRouter.
Fields§
§id: StringModel ID (e.g., “openai/gpt-4o”).
name: StringDisplay name.
description: Option<String>Model description.
context_length: usizeContext length in tokens.
pricing: ModelPricingPricing information.
top_provider: Option<TopProvider>Top provider for this model.
architecture: Option<ModelArchitecture>Model architecture.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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 Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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