Struct kalosm_language_model::ChatMarkers
source · pub struct ChatMarkers {
pub user_marker: &'static str,
pub end_user_marker: &'static str,
pub assistant_marker: &'static str,
pub end_assistant_marker: &'static str,
pub system_prompt_marker: &'static str,
pub end_system_prompt_marker: &'static str,
}
Expand description
The chat markers to use for the model.
Fields§
§user_marker: &'static str
The marker to use before user input.
end_user_marker: &'static str
The marker to use after user input.
assistant_marker: &'static str
The marker to use before assistant messages.
end_assistant_marker: &'static str
The marker to use after assistant messages.
system_prompt_marker: &'static str
The marker to use before system prompts.
end_system_prompt_marker: &'static str
The marker to use after system prompts.
Trait Implementations§
source§impl Clone for ChatMarkers
impl Clone for ChatMarkers
source§fn clone(&self) -> ChatMarkers
fn clone(&self) -> ChatMarkers
Returns a copy 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 Default for ChatMarkers
impl Default for ChatMarkers
source§fn default() -> ChatMarkers
fn default() -> ChatMarkers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ChatMarkers
impl Send for ChatMarkers
impl Sync for ChatMarkers
impl Unpin for ChatMarkers
impl UnwindSafe for ChatMarkers
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