mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
Don't fail for global_max_parallel_requests
= 1
When `global_max_parallel_requests` was set to `1`, all requests failed.
This commit is contained in:
parent
f670ebeb2f
commit
f449857d57
2 changed files with 30 additions and 1 deletions
|
@ -222,7 +222,7 @@ class _PROXY_MaxParallelRequestsHandler(CustomLogger):
|
|||
)
|
||||
# check if below limit
|
||||
if current_global_requests is None:
|
||||
current_global_requests = 1
|
||||
current_global_requests = 0
|
||||
# if above -> raise error
|
||||
if current_global_requests >= global_max_parallel_requests:
|
||||
return self.raise_rate_limit_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue