diff --git a/server/bleep/src/llm_gateway.rs b/server/bleep/src/llm_gateway.rs index 6b45f9dffa..a1597fc405 100644 --- a/server/bleep/src/llm_gateway.rs +++ b/server/bleep/src/llm_gateway.rs @@ -112,6 +112,21 @@ pub mod api { #[error("incorrect configuration")] BadConfiguration, + + #[error("failed to call quota API")] + QuotaCallFailed, + + #[error("exceeded quota")] + ExceededQuota, + + #[error("quota API was not set")] + QuotaApiNotSet, + + #[error("called quota API with no authorization")] + UnauthorizedQuotaCall, + + #[error("waiting for the next token took longer than allowed")] + TokenDelayTooLarge, } pub type Result = std::result::Result;