pub struct ChatTemplateOptions {
pub enable_thinking: Option<bool>,
pub now_override: Option<NaiveDateTime>,
}Fields§
§enable_thinking: Option<bool>§now_override: Option<NaiveDateTime>Clock seen by the template’s strftime_now (Mistral-Small-3.2 and
Llama-3.x inject “today’s date” into the system prompt). None =
local wall clock; golden tests pin the timestamp recorded at
fixture-generation time so byte comparison survives the date
changing.
Implementations§
Source§impl ChatTemplateOptions
impl ChatTemplateOptions
pub fn default_for_template(_model_template: Option<&ModelChatTemplate>) -> Self
Trait Implementations§
Source§impl Clone for ChatTemplateOptions
impl Clone for ChatTemplateOptions
Source§fn clone(&self) -> ChatTemplateOptions
fn clone(&self) -> ChatTemplateOptions
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 ChatTemplateOptions
impl Debug for ChatTemplateOptions
Source§impl Default for ChatTemplateOptions
impl Default for ChatTemplateOptions
Source§fn default() -> ChatTemplateOptions
fn default() -> ChatTemplateOptions
Returns the “default value” for a type. Read more
impl Eq for ChatTemplateOptions
Source§impl PartialEq for ChatTemplateOptions
impl PartialEq for ChatTemplateOptions
impl StructuralPartialEq for ChatTemplateOptions
Auto Trait Implementations§
impl Freeze for ChatTemplateOptions
impl RefUnwindSafe for ChatTemplateOptions
impl Send for ChatTemplateOptions
impl Sync for ChatTemplateOptions
impl Unpin for ChatTemplateOptions
impl UnsafeUnpin for ChatTemplateOptions
impl UnwindSafe for ChatTemplateOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.