Add capacity error (#1947)
This commit is contained in:
@@ -271,6 +271,10 @@ impl ModelClient {
|
||||
}
|
||||
|
||||
if attempt > max_retries {
|
||||
if status == StatusCode::INTERNAL_SERVER_ERROR {
|
||||
return Err(CodexErr::InternalServerError);
|
||||
}
|
||||
|
||||
return Err(CodexErr::RetryLimit(status));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user