pub struct ChatRenderOptions {
pub add_generation_prompt: bool,
pub enable_thinking: bool,
}Expand description
Extra Jinja variables for templates that need more than the ChatML baseline (Gemma 4 thinking channel, tool schemas, …).
Fields§
§add_generation_prompt: bool§enable_thinking: boolGemma 4 unified templates gate the <|think|> prefix and thought
channel on this flag (HF enable_thinking, default true for IT).
Implementations§
Trait Implementations§
Source§impl Clone for ChatRenderOptions
impl Clone for ChatRenderOptions
Source§fn clone(&self) -> ChatRenderOptions
fn clone(&self) -> ChatRenderOptions
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 moreimpl Copy for ChatRenderOptions
Source§impl Debug for ChatRenderOptions
impl Debug for ChatRenderOptions
Auto Trait Implementations§
impl Freeze for ChatRenderOptions
impl RefUnwindSafe for ChatRenderOptions
impl Send for ChatRenderOptions
impl Sync for ChatRenderOptions
impl Unpin for ChatRenderOptions
impl UnsafeUnpin for ChatRenderOptions
impl UnwindSafe for ChatRenderOptions
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<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