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
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
3 changed files with 10 additions and 4 deletions

View file

@ -447,6 +447,7 @@ impl ErrorCode for milli::Error {
| UserError::InvalidSettingsDimensions { .. }
| UserError::InvalidUrl { .. }
| UserError::InvalidSettingsDocumentTemplateMaxBytes { .. }
| UserError::InvalidChatSettingsDocumentTemplateMaxBytes
| UserError::InvalidPrompt(_)
| UserError::InvalidDisableBinaryQuantization { .. }
| UserError::InvalidSourceForNested { .. }