Skip to main content

llama_cpp_bindings/error/
token_sampling_error.rs

1use crate::error::sampler_apply_error::SamplerApplyError;
2
3#[derive(Debug, Eq, PartialEq, thiserror::Error)]
4pub enum TokenSamplingError {
5    #[error("No token was selected by the sampler")]
6    NoTokenSelected,
7    #[error("applying the sampler to the token data array failed: {0}")]
8    SamplerApply(#[from] SamplerApplyError),
9}