llama_cpp_bindings/error/sampler_apply_error.rs
1#[derive(Debug, thiserror::Error, Clone, PartialEq, Eq)]
2pub enum SamplerApplyError {
3 #[error("the sampler pointer was null when applying to the token data array")]
4 NullSampler,
5 #[error("the sampler ran out of memory while applying to the token data array")]
6 NotEnoughMemory,
7 #[error(
8 "the vendored sampler threw a C++ exception while applying to the token data array: {message}"
9 )]
10 Reported { message: String },
11}