pub struct SamplingOverrides {
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub top_k: Option<u32>,
pub min_p: Option<f32>,
pub repeat_penalty: Option<f32>,
pub spec_max_temperature: Option<f32>,
pub fallback: Option<SamplingFallback>,
}Fields§
§temperature: Option<f32>§top_p: Option<f32>§top_k: Option<u32>§min_p: Option<f32>§repeat_penalty: Option<f32>§spec_max_temperature: Option<f32>§fallback: Option<SamplingFallback>Optional policy for an embedding whose omitted request parameters predate model-published defaults. None preserves superfluid’s policy.
Implementations§
Trait Implementations§
Source§impl Clone for SamplingOverrides
impl Clone for SamplingOverrides
impl Copy for SamplingOverrides
Source§impl Debug for SamplingOverrides
impl Debug for SamplingOverrides
Source§impl Default for SamplingOverrides
impl Default for SamplingOverrides
Source§impl PartialEq for SamplingOverrides
impl PartialEq for SamplingOverrides
impl StructuralPartialEq for SamplingOverrides
Auto Trait Implementations§
impl Freeze for SamplingOverrides
impl RefUnwindSafe for SamplingOverrides
impl Send for SamplingOverrides
impl Sync for SamplingOverrides
impl Unpin for SamplingOverrides
impl UnsafeUnpin for SamplingOverrides
impl UnwindSafe for SamplingOverrides
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more