Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

687 B
Raw Blame
use crate::chat::{SynchronizationError, harmony::bridging::Error as BridgingError};

#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
    #[error("Unable to load encoding")]
    UnableToLoadEncoding,
    #[error("Expected directory tokenizer location")]
    ExpectedDirectoryTokenizerLocation,
    #[error(transparent)]
    Bridging(#[from] BridgingError),
    #[error("Unable to render conversation")]
    UnableToRenderConversation,
    #[error("Unable to decode token")]
    UnableToDecodeToken,
    #[error(transparent)]
    Synchronization(#[from] SynchronizationError),
    #[error("Parser error: {reason}")]
    ParserError {
        reason: String,
    },
}