Struct ModelInfo
pub struct ModelInfo {
pub id: String,
pub pricing: Option<ModelPricing>,
pub context_window: Option<usize>,
}Expand description
Model info with optional pricing — returned by list_models_with_pricing.
Fields§
§id: String§pricing: Option<ModelPricing>§context_window: Option<usize>Maximum input window in tokens, as reported by the provider catalog.
None when the catalog does not publish one — callers must treat that
as “unknown” rather than substituting a default, so an operator can be
told the window is unset instead of silently getting a stub value.
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 UnsafeUnpin 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