Skip to content

Commit

Permalink
add additional llm_gateway error types (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall committed Dec 15, 2023
1 parent 6d4ea7d commit 7f44f51
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions server/bleep/src/llm_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Error>;
Expand Down

0 comments on commit 7f44f51

Please sign in to comment.