pub struct FFIGenerationOptions {
pub temperature: f64,
pub maximum_response_tokens: i32,
pub sampling_mode: i32,
pub top_k: i32,
pub top_p: f64,
pub random_seed: u64,
pub has_random_seed: bool,
}Expand description
Plain-old-data carrier for crate::generation::GenerationOptions.
Fields§
§temperature: f64§maximum_response_tokens: i32§sampling_mode: i32§top_k: i32§top_p: f64§random_seed: u64§has_random_seed: boolTrait Implementations§
Source§impl Clone for FFIGenerationOptions
impl Clone for FFIGenerationOptions
Source§fn clone(&self) -> FFIGenerationOptions
fn clone(&self) -> FFIGenerationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FFIGenerationOptions
Auto Trait Implementations§
impl Freeze for FFIGenerationOptions
impl RefUnwindSafe for FFIGenerationOptions
impl Send for FFIGenerationOptions
impl Sync for FFIGenerationOptions
impl Unpin for FFIGenerationOptions
impl UnsafeUnpin for FFIGenerationOptions
impl UnwindSafe for FFIGenerationOptions
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