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
impl Copy for ModelCapabilities
Auto Trait Implementations§
impl Forget for ModelCapabilities
impl Freeze for ModelCapabilities
impl Move 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