alith_interface/requests/embeddings/
error.rs1#[derive(Debug, thiserror::Error)]
2pub enum EmbeddingsError {
3 #[error("RequestBuilderError: {0}")]
5 RequestBuilderError(String),
6 #[error("ClientError: {0}")]
7 ClientError(#[from] crate::llms::api::error::ClientError),
8 #[error("LocalClientError: {0}")]
9 LocalClientError(String),
10 #[error("ExceededRetryCount")]
11 ExceededRetryCount {
12 message: String,
13 errors: Vec<EmbeddingsError>,
14 },
15 #[error("ResponseContentEmpty: Response had no content")]
17 ResponseContentEmpty,
18 #[error("StopLimitRetry: stopped_limit == true && retry_stopped_limit == true")]
19 StopLimitRetry,
20 #[error("JsonError: {0}")]
22 JsonError(#[from] serde_json::Error),
23}