pub struct GenerationOptions {
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub max_output_tokens: Option<u64>,
pub seed: Option<u64>,
pub stop: Vec<String>,
}Expand description
Sampling and output-length options common to providers.
Fields§
§temperature: Option<f64>Sampling temperature.
top_p: Option<f64>Nucleus-sampling probability.
max_output_tokens: Option<u64>Maximum output tokens.
seed: Option<u64>Optional deterministic seed.
stop: Vec<String>Stop sequences.
Trait Implementations§
Source§impl Clone for GenerationOptions
impl Clone for GenerationOptions
Source§fn clone(&self) -> GenerationOptions
fn clone(&self) -> GenerationOptions
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 GenerationOptions
impl Debug for GenerationOptions
Source§impl Default for GenerationOptions
impl Default for GenerationOptions
Source§fn default() -> GenerationOptions
fn default() -> GenerationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerationOptions
impl<'de> Deserialize<'de> for GenerationOptions
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
Source§impl PartialEq for GenerationOptions
impl PartialEq for GenerationOptions
Source§impl Serialize for GenerationOptions
impl Serialize for GenerationOptions
impl StructuralPartialEq for GenerationOptions
Auto Trait Implementations§
impl Freeze for GenerationOptions
impl RefUnwindSafe for GenerationOptions
impl Send for GenerationOptions
impl Sync for GenerationOptions
impl Unpin for GenerationOptions
impl UnsafeUnpin for GenerationOptions
impl UnwindSafe for GenerationOptions
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