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
14
15
16
17
use std::ffi::NulError;
use std::path::PathBuf;

#[derive(Debug, Eq, PartialEq, thiserror::Error)]
pub enum LoadSeqStateError {
    #[error("Failed to load sequence state file")]
    FailedToLoad,

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

    #[error("failed to convert path {0} to str")]
    PathToStrError(PathBuf),

    #[error("max_length is not large enough to hold {n_out} (was {max_tokens})")]
    InsufficientMaxLength { n_out: usize, max_tokens: usize },
}