mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Fix Azure RPM calculation formula (#19513)
* Fix Azure RPM calculation formula * updated test
This commit is contained in:
parent
60840ea292
commit
c8669cf8fa
2 changed files with 3 additions and 3 deletions
|
|
@ -4720,7 +4720,7 @@ def calculate_max_parallel_requests(
|
|||
elif rpm is not None:
|
||||
return rpm
|
||||
elif tpm is not None:
|
||||
calculated_rpm = int(tpm / 1000 / 6)
|
||||
calculated_rpm = int(tpm / 1000 * 6)
|
||||
if calculated_rpm == 0:
|
||||
calculated_rpm = 1
|
||||
return calculated_rpm
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ def test_scenario(max_parallel_requests, tpm, rpm, default_max_parallel_requests
|
|||
elif rpm is not None:
|
||||
assert rpm == calculated_max_parallel_requests
|
||||
elif tpm is not None:
|
||||
calculated_rpm = int(tpm / 1000 / 6)
|
||||
calculated_rpm = int(tpm / 1000 * 6)
|
||||
if calculated_rpm == 0:
|
||||
calculated_rpm = 1
|
||||
print(
|
||||
|
|
@ -107,7 +107,7 @@ def test_setting_mpr_limits_per_model(
|
|||
elif rpm is not None:
|
||||
assert rpm == mpr_client._value
|
||||
elif tpm is not None:
|
||||
calculated_rpm = int(tpm / 1000 / 6)
|
||||
calculated_rpm = int(tpm / 1000 * 6)
|
||||
if calculated_rpm == 0:
|
||||
calculated_rpm = 1
|
||||
print(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue