pub struct ModelSpec {
pub id: String,
pub display_name: Option<String>,
pub description: Option<String>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub top_k: Option<u32>,
pub max_tokens: Option<u32>,
pub stop_sequences: Option<Vec<String>>,
pub context_limit: Option<u32>,
pub effort: Option<Effort>,
pub support_vision: Option<bool>,
pub weight_class: Option<WeightClass>,
}Fields§
§id: String§display_name: Option<String>§description: Option<String>§temperature: Option<f32>§top_p: Option<f32>§top_k: Option<u32>§max_tokens: Option<u32>§stop_sequences: Option<Vec<String>>§context_limit: Option<u32>§effort: Option<Effort>§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
Auto Trait Implementations§
impl Freeze for ModelSpec
impl RefUnwindSafe for ModelSpec
impl Send for ModelSpec
impl Sync for ModelSpec
impl Unpin for ModelSpec
impl UnsafeUnpin for ModelSpec
impl UnwindSafe for ModelSpec
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