From 6193465ca4e48cabe53d413943dfe8814f5a4174 Mon Sep 17 00:00:00 2001 From: jorgeantonio21 Date: Sun, 31 Mar 2024 21:21:47 +0100 Subject: [PATCH] remove unused error fields --- atoma-inference/src/service.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/atoma-inference/src/service.rs b/atoma-inference/src/service.rs index 68866ca9..5425bdfa 100644 --- a/atoma-inference/src/service.rs +++ b/atoma-inference/src/service.rs @@ -107,22 +107,16 @@ where #[derive(Debug, Error)] pub enum ModelServiceError { - #[error("Failed to connect to API: `{0}`")] - FailedApiConnection(ApiError), #[error("Failed to run inference: `{0}`")] - FailedInference(Box), + FailedInference(Box), #[error("Failed to fecth model: `{0}`")] FailedModelFetch(String), #[error("Failed to generate private key: `{0}`")] PrivateKeyError(io::Error), #[error("Core error: `{0}`")] ModelThreadError(ModelThreadError), - // #[error("Send error: `{0}`")] - // SendError(SendError<_>), #[error("Api error: `{0}`")] ApiError(ApiError), - #[error("Tokenizer error: `{0}`")] - TokenizerError(Box), #[error("Candle error: `{0}`")] CandleError(CandleError), }