Skip to content

Commit 593257e

Browse files
committed
remove unused error type
1 parent 6ed6248 commit 593257e

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

llama-cpp-2/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ pub enum ChatTemplateError {
8282
Utf8Error(#[from] std::str::Utf8Error),
8383
}
8484

85-
enum InternalChatTemplateError {
86-
Permanent(ChatTemplateError),
87-
/// the buffer was too small.
88-
RetryWithLargerBuffer(usize),
89-
}
90-
9185
/// Failed to Load context
9286
#[derive(Debug, Eq, PartialEq, thiserror::Error)]
9387
pub enum LlamaContextLoadError {

llama-cpp-2/src/model.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ use crate::model::params::LlamaModelParams;
1313
use crate::token::LlamaToken;
1414
use crate::token_type::{LlamaTokenAttr, LlamaTokenAttrs};
1515
use crate::{
16-
ApplyChatTemplateError, ChatTemplateError, InternalChatTemplateError, LlamaContextLoadError,
17-
LlamaLoraAdapterInitError, LlamaModelLoadError, NewLlamaChatMessageError, StringToTokenError,
18-
TokenToStringError,
16+
ApplyChatTemplateError, ChatTemplateError, LlamaContextLoadError, LlamaLoraAdapterInitError,
17+
LlamaModelLoadError, NewLlamaChatMessageError, StringToTokenError, TokenToStringError,
1918
};
2019

2120
pub mod params;

0 commit comments

Comments
 (0)