pub struct ModelCapabilities {
pub context_window: Option<u32>,
pub tool_calling: Option<bool>,
pub reasoning: Option<bool>,
pub vision: Option<bool>,
}Expand description
Capabilities declared for one route.
GET /v1/models includes context_window, tool_calling, and vision in each
standard data entry, using null for unset values. It omits reasoning.
The server rejects tool inputs, reasoning controls, or images when the
corresponding declaration is explicitly false for the selected route.
Fields§
§context_window: Option<u32>§tool_calling: Option<bool>§reasoning: Option<bool>Whether the routed model accepts reasoning controls, as declared in config.
vision: Option<bool>Whether the routed model accepts image input, as declared in config.
Trait Implementations§
Source§impl Clone for ModelCapabilities
impl Clone for ModelCapabilities
Source§fn clone(&self) -> ModelCapabilities
fn clone(&self) -> ModelCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelCapabilities
Source§impl Default for ModelCapabilities
impl Default for ModelCapabilities
Source§fn default() -> ModelCapabilities
fn default() -> ModelCapabilities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelCapabilities
impl RefUnwindSafe for ModelCapabilities
impl Send for ModelCapabilities
impl Sync for ModelCapabilities
impl Unpin for ModelCapabilities
impl UnsafeUnpin for ModelCapabilities
impl UnwindSafe for ModelCapabilities
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