Struct OllamaTuning
pub struct OllamaTuning {
pub num_ctx: u32,
pub num_predict: i32,
pub temperature_override: Option<f64>,
}Fields§
§num_ctx: u32§num_predict: i32§temperature_override: Option<f64>Implementations§
Source§impl OllamaTuning
impl OllamaTuning
Sourcepub fn from_runtime_overrides(
num_ctx: Option<u32>,
num_predict: Option<i32>,
temperature_override: Option<f64>,
) -> OllamaTuning
pub fn from_runtime_overrides( num_ctx: Option<u32>, num_predict: Option<i32>, temperature_override: Option<f64>, ) -> OllamaTuning
Build a tuning struct from the three optional ModelProviderRuntimeOptions
fields the ollama factory arm consumes. Unset num_ctx /
num_predict fall back to framework constants; unset
temperature_override stays None so the per-call temperature wins.
Trait Implementations§
Source§impl Clone for OllamaTuning
impl Clone for OllamaTuning
Source§fn clone(&self) -> OllamaTuning
fn clone(&self) -> OllamaTuning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OllamaTuning
impl Debug for OllamaTuning
Source§impl Default for OllamaTuning
impl Default for OllamaTuning
Source§fn default() -> OllamaTuning
fn default() -> OllamaTuning
Returns the “default value” for a type. Read more
Source§impl PartialEq for OllamaTuning
impl PartialEq for OllamaTuning
impl Copy for OllamaTuning
impl StructuralPartialEq for OllamaTuning
Auto Trait Implementations§
impl Freeze for OllamaTuning
impl RefUnwindSafe for OllamaTuning
impl Send for OllamaTuning
impl Sync for OllamaTuning
impl Unpin for OllamaTuning
impl UnsafeUnpin for OllamaTuning
impl UnwindSafe for OllamaTuning
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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