pub struct AI21 {
pub token: String,
pub top_k: u8,
pub top_p: f64,
pub temperature: f64,
pub presence_penalty: f64,
pub count_penalty: f64,
pub frequency_penalty: f64,
pub max_tokens: u16,
pub stop_sequences: Vec<String>,
/* private fields */
}
Fields§
§token: String
§top_k: u8
§top_p: f64
§temperature: f64
§presence_penalty: f64
§count_penalty: f64
§frequency_penalty: f64
§max_tokens: u16
§stop_sequences: Vec<String>
Implementations§
Auto Trait Implementations§
impl Freeze for AI21
impl !RefUnwindSafe for AI21
impl Send for AI21
impl Sync for AI21
impl Unpin for AI21
impl !UnwindSafe for AI21
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