pub struct ModelSpec {
pub id: String,
pub display_name: Option<String>,
pub description: Option<String>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub stop_sequences: Option<Vec<String>>,
pub context_limit: Option<u32>,
pub compact_at: Option<u32>,
pub effort: Option<Effort>,
pub supported_efforts: Option<Vec<Effort>>,
pub support_vision: Option<bool>,
pub weight_class: Option<WeightClass>,
}Fields§
§id: String§display_name: Option<String>§description: Option<String>§temperature: Option<f32>§max_tokens: Option<u32>§stop_sequences: Option<Vec<String>>§context_limit: Option<u32>§compact_at: Option<u32>Occupancy in tokens at which auto-compact starts. The default, and
the ceiling, is a fixed share of context_limit.
effort: Option<Effort>§supported_efforts: Option<Vec<Effort>>The effort levels this model supports when configured in the user catalog. When absent, the provider’s built-in model profile supplies the ladder; an empty list means that the model takes no effort setting.
support_vision: Option<bool>§weight_class: Option<WeightClass>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelSpec
impl<'de> Deserialize<'de> for ModelSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ModelSpec
Auto Trait Implementations§
impl Forget for ModelSpec
impl Freeze for ModelSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Effort>: Freeze,
impl Move for ModelSpec
impl RefUnwindSafe for ModelSpec
impl Send for ModelSpecwhere
RawVecInner: Send,
impl Sync for ModelSpecwhere
RawVecInner: Sync,
impl Unpin for ModelSpec
impl UnsafeUnpin for ModelSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Effort>: UnsafeUnpin,
impl UnwindSafe for ModelSpecwhere
RawVecInner: UnwindSafe,
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