pub enum ChatTemplateError {
BuffSizeError(usize),
MissingTemplate(i32),
Utf8Error(Utf8Error),
}
Expand description
There was an error while getting the chat template from a model.
Variants§
BuffSizeError(usize)
the buffer was too small.
MissingTemplate(i32)
gguf has no chat template
Utf8Error(Utf8Error)
The chat template was not valid utf8.
Trait Implementations§
Source§impl Debug for ChatTemplateError
impl Debug for ChatTemplateError
Source§impl Display for ChatTemplateError
impl Display for ChatTemplateError
Source§impl Error for ChatTemplateError
impl Error for ChatTemplateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ChatTemplateError> for LLamaCppError
impl From<ChatTemplateError> for LLamaCppError
Source§fn from(source: ChatTemplateError) -> Self
fn from(source: ChatTemplateError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for ChatTemplateError
impl From<Utf8Error> for ChatTemplateError
Source§impl PartialEq for ChatTemplateError
impl PartialEq for ChatTemplateError
impl Eq for ChatTemplateError
impl StructuralPartialEq for ChatTemplateError
Auto Trait Implementations§
impl Freeze for ChatTemplateError
impl RefUnwindSafe for ChatTemplateError
impl Send for ChatTemplateError
impl Sync for ChatTemplateError
impl Unpin for ChatTemplateError
impl UnwindSafe for ChatTemplateError
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