superdup95 commited on
Commit
6bdd5a2
·
1 Parent(s): d667fd9

Update api_usage.py

Browse files
Files changed (1) hide show
  1. api_usage.py +2 -2
api_usage.py CHANGED
@@ -133,11 +133,11 @@ def format_status(list_models_avai, headers):
133
  tpm_str += tpm[i] + (", " if i < len(rpm)-1 else "")
134
  return rpm_str, tpm_str, quota
135
 
136
- def check_key_tier(rpm, dict, headers):
137
  dictItemsCount = len(dict)
138
  dictCount = 0
139
  for k, v in dict.items():
140
- if rpm == v:
141
  #if k == "tier-4-5":
142
  # req_body = {"model": "whisper-1"}
143
  # r = requests.post(f"{BASE_URL}/audio/transcriptions", headers=headers, json=req_body, timeout=10)
 
133
  tpm_str += tpm[i] + (", " if i < len(rpm)-1 else "")
134
  return rpm_str, tpm_str, quota
135
 
136
+ def check_key_tier(rpm, tpm, dict, headers):
137
  dictItemsCount = len(dict)
138
  dictCount = 0
139
  for k, v in dict.items():
140
+ if tpm == v:
141
  #if k == "tier-4-5":
142
  # req_body = {"model": "whisper-1"}
143
  # r = requests.post(f"{BASE_URL}/audio/transcriptions", headers=headers, json=req_body, timeout=10)