Skip to content

Commit

Permalink
remove unused error fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Mar 31, 2024
1 parent b8a51ac commit 6193465
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions atoma-inference/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn std::error::Error + Send + Sync>),
FailedInference(Box<dyn std::error::Error + Sync>),
#[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<dyn std::error::Error + Send + Sync + 'static>),
#[error("Candle error: `{0}`")]
CandleError(CandleError),
}
Expand Down

0 comments on commit 6193465

Please sign in to comment.