pub struct PresetModel {
pub id: &'static str,
pub display_name: &'static str,
pub context_window: usize,
pub max_output_tokens: Option<u64>,
pub supports_images: bool,
}Expand description
A built-in model advertised for a backend.
Fields§
§id: &'static str§display_name: &'static str§context_window: usize§max_output_tokens: Option<u64>§supports_images: boolWhether the model accepts image input.
Trait Implementations§
Source§impl Clone for PresetModel
impl Clone for PresetModel
Auto Trait Implementations§
impl Forget for PresetModel
impl Freeze for PresetModel
impl RefUnwindSafe for PresetModel
impl Send for PresetModel
impl Sync for PresetModel
impl Unpin for PresetModel
impl UnsafeUnpin for PresetModel
impl UnwindSafe for PresetModel
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