alith_interface/requests/embeddings/
error.rs

1#[derive(Debug, thiserror::Error)]
2pub enum EmbeddingsError {
3    // Break on these types
4    #[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    // Continue on these types
16    #[error("ResponseContentEmpty: Response had no content")]
17    ResponseContentEmpty,
18    #[error("StopLimitRetry: stopped_limit == true && retry_stopped_limit == true")]
19    StopLimitRetry,
20    /// Json serialization or deserialization errors
21    #[error("JsonError: {0}")]
22    JsonError(#[from] serde_json::Error),
23}