pub struct Model {
pub name: String,
pub version: String,
pub display_name: String,
pub description: String,
pub input_token_limit: i32,
pub output_token_limit: i32,
pub supported_generation_methods: Vec<String>,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub top_k: Option<i32>,
}
Expand description
Information about a Generative Language Model
Fields§
§name: String
§version: String
§display_name: String
§description: String
§input_token_limit: i32
§output_token_limit: i32
§supported_generation_methods: Vec<String>
§temperature: Option<f32>
§top_p: Option<f32>
§top_k: Option<i32>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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 Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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