Report an error when the document template max bytes is zero

This commit is contained in:
Kerollmops
2025-06-10 16:27:18 +02:00
parent 34d572e3e5
commit 5ceb3c6a10
3 changed files with 10 additions and 4 deletions

View File

@ -386,6 +386,8 @@ and can not be more than 511 bytes.", .document_id.to_string()
DocumentEditionRuntimeError(Box<EvalAltResult>),
#[error("Document edition runtime error encountered while compiling the function: {0}")]
DocumentEditionCompilationError(rhai::ParseError),
#[error("`.chat.documentTemplateMaxBytes`: `documentTemplateMaxBytes` cannot be zero")]
InvalidChatSettingsDocumentTemplateMaxBytes,
#[error("{0}")]
DocumentEmbeddingError(String),
}