Skip to main content

llama_cpp_bindings/error/
apply_chat_template_error.rs

1#[derive(Debug, PartialEq, Eq, thiserror::Error)]
2pub enum ApplyChatTemplateError {
3    #[error("the model has no vocab")]
4    NoVocab,
5    #[error("the model's chat template rendered an empty prompt or could not be rendered")]
6    TemplateApplicationFailed,
7    #[error("not enough memory to render the chat template")]
8    NotEnoughMemory,
9    #[error("{message}")]
10    Reported { message: String },
11}