Skip to main content

llama_cpp_bindings/error/
apply_chat_template_error.rs

1use std::string::FromUtf8Error;
2
3/// Failed to apply model chat template.
4#[derive(Debug, thiserror::Error)]
5pub enum ApplyChatTemplateError {
6    /// the string could not be converted to utf8.
7    #[error("{0}")]
8    FromUtf8Error(#[from] FromUtf8Error),
9    /// An integer conversion failed.
10    #[error("Integer conversion error: {0}")]
11    IntConversionError(#[from] std::num::TryFromIntError),
12}