Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 7f44f51

Browse files
authored
add additional llm_gateway error types (#1177)
1 parent 6d4ea7d commit 7f44f51

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

server/bleep/src/llm_gateway.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,21 @@ pub mod api {
112112

113113
#[error("incorrect configuration")]
114114
BadConfiguration,
115+
116+
#[error("failed to call quota API")]
117+
QuotaCallFailed,
118+
119+
#[error("exceeded quota")]
120+
ExceededQuota,
121+
122+
#[error("quota API was not set")]
123+
QuotaApiNotSet,
124+
125+
#[error("called quota API with no authorization")]
126+
UnauthorizedQuotaCall,
127+
128+
#[error("waiting for the next token took longer than allowed")]
129+
TokenDelayTooLarge,
115130
}
116131

117132
pub type Result = std::result::Result<String, Error>;

0 commit comments

Comments
 (0)