pub struct BackendModel {
pub upstream: String,
pub display: String,
pub context_window: usize,
pub max_output_tokens: Option<u64>,
pub supports_images: bool,
}Expand description
One model offered by a resolved backend.
Fields§
§upstream: StringUpstream model id sent to the endpoint.
display: StringHuman-readable name shown in pickers.
context_window: usizeContext window size in tokens (used for compaction thresholds).
max_output_tokens: Option<u64>Maximum output tokens; None falls back to the provider default.
supports_images: boolWhether the model accepts image input.
Trait Implementations§
Source§impl Clone for BackendModel
impl Clone for BackendModel
Auto Trait Implementations§
impl Forget for BackendModel
impl Freeze for BackendModel
impl RefUnwindSafe for BackendModel
impl Send for BackendModel
impl Sync for BackendModel
impl Unpin for BackendModel
impl UnsafeUnpin for BackendModel
impl UnwindSafe for BackendModel
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