pub struct FFIGenerationOptions {
pub temperature: f64,
pub maximum_response_tokens: i32,
pub sampling_mode: i32,
pub top_k: i32,
pub top_p: f64,
}Expand description
Plain-old-data carrier for crate::GenerationOptions, lowered into
scalar arguments at the Swift FFI boundary because @_cdecl cannot
accept Swift struct pointer parameters.
temperature == NaN signals “leave default”;
maximum_response_tokens == 0 signals “no limit”.
Fields§
§temperature: f64§maximum_response_tokens: i32§sampling_mode: i32§top_k: i32§top_p: f64Trait 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 moreSource§impl Debug for FFIGenerationOptions
impl Debug for FFIGenerationOptions
impl 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