mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(fix) don't double check curr data and time
This commit is contained in:
parent
b5900099af
commit
1fff8f8105
1 changed files with 0 additions and 5 deletions
|
@ -147,11 +147,6 @@ class _PROXY_MaxParallelRequestsHandler(CustomLogger):
|
|||
user_rpm_limit = sys.maxsize
|
||||
|
||||
# now do the same tpm/rpm checks
|
||||
current_date = datetime.now().strftime("%Y-%m-%d")
|
||||
current_hour = datetime.now().strftime("%H")
|
||||
current_minute = datetime.now().strftime("%M")
|
||||
precise_minute = f"{current_date}-{current_hour}-{current_minute}"
|
||||
|
||||
request_count_api_key = f"{user_id}::{precise_minute}::request_count"
|
||||
|
||||
# print(f"Checking if {request_count_api_key} is allowed to make request for minute {precise_minute}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue