Skip to main content

llama_cpp_bindings/error/
chat_template_error.rs

1use std::ffi::NulError;
2
3#[derive(Debug, Eq, PartialEq, thiserror::Error)]
4pub enum ChatTemplateError {
5    #[error("chat template not found - returned null pointer")]
6    MissingTemplate,
7
8    #[error("null byte in string {0}")]
9    NullError(#[from] NulError),
10
11    #[error(transparent)]
12    Utf8Error(#[from] std::str::Utf8Error),
13}