use std::ffi::NulError;
/// There was an error while getting the chat template from a model.
#[derive(Debug, Eq, PartialEq, thiserror::Error)]
pub enum ChatTemplateError {
/// gguf has no chat template (by that name)
#[error("chat template not found - returned null pointer")]
MissingTemplate,
/// chat template contained a null byte
#[error("null byte in string {0}")]
NullError(#[from] NulError),
/// The chat template was not valid utf8.
#[error(transparent)]
Utf8Error(#[from] std::str::Utf8Error),
}