agent: Remove unused max monthly spend reached error (#30615)

This PR removes the code for showing the max monthly spend limit reached
error, as it is no longer used.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-05-13 11:43:13 +02:00 committed by GitHub
parent 29da105dd5
commit 7cad943fde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 143 deletions

View file

@ -133,18 +133,6 @@ impl fmt::Display for PaymentRequiredError {
}
}
#[derive(Error, Debug)]
pub struct MaxMonthlySpendReachedError;
impl fmt::Display for MaxMonthlySpendReachedError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"Maximum spending limit reached for this month. For more usage, increase your spending limit."
)
}
}
#[derive(Error, Debug)]
pub struct ModelRequestLimitReachedError {
pub plan: Plan,