pub enum ThinkSetting {
Enabled(bool),
Level(String),
}Expand description
Think setting for generate requests
Controls whether and how the model outputs its thinking process. Can be a boolean (true/false) or a string (“high”, “medium”, “low”).
§Examples
use ollama_oxide::ThinkSetting;
let enabled = ThinkSetting::enabled();
let high = ThinkSetting::high();Variants§
Enabled(bool)
Boolean: true to enable, false to disable
Level(String)
Level: “high”, “medium”, or “low”
Implementations§
Source§impl ThinkSetting
impl ThinkSetting
Trait Implementations§
Source§impl Clone for ThinkSetting
impl Clone for ThinkSetting
Source§fn clone(&self) -> ThinkSetting
fn clone(&self) -> ThinkSetting
Returns a duplicate of the value. Read more
1.0.0 · 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 ThinkSetting
impl Debug for ThinkSetting
Source§impl<'de> Deserialize<'de> for ThinkSetting
impl<'de> Deserialize<'de> for ThinkSetting
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 From<&str> for ThinkSetting
impl From<&str> for ThinkSetting
Source§impl From<bool> for ThinkSetting
impl From<bool> for ThinkSetting
Source§impl PartialEq for ThinkSetting
impl PartialEq for ThinkSetting
Source§impl Serialize for ThinkSetting
impl Serialize for ThinkSetting
impl StructuralPartialEq for ThinkSetting
Auto Trait Implementations§
impl Freeze for ThinkSetting
impl RefUnwindSafe for ThinkSetting
impl Send for ThinkSetting
impl Sync for ThinkSetting
impl Unpin for ThinkSetting
impl UnsafeUnpin for ThinkSetting
impl UnwindSafe for ThinkSetting
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