llama-cpp-bindings 0.8.0

llama.cpp bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::ffi::NulError;

#[derive(Debug, Eq, PartialEq, thiserror::Error)]
pub enum ChatTemplateError {
    #[error("chat template not found - returned null pointer")]
    MissingTemplate,

    #[error("null byte in string {0}")]
    NullError(#[from] NulError),

    #[error(transparent)]
    Utf8Error(#[from] std::str::Utf8Error),
}