Skip to content

Commit e3b9296

Browse files
committed
added BatchAddError to LLamaCppError
1 parent 218842d commit e3b9296

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

llama-cpp-2/src/llama_batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct LlamaBatch {
1515
}
1616

1717
/// Errors that can occur when adding a token to a batch.
18-
#[derive(thiserror::Error, Debug)]
18+
#[derive(thiserror::Error, Debug, PartialEq, Eq)]
1919
pub enum BatchAddError {
2020
/// There was not enough space in the batch to add the token.
2121
#[error("Insufficient Space of {0}")]

0 commit comments

Comments
 (0)