refactor: remove script_dir param from get_groq_limits_for_stt_model

This commit is contained in:
Jun Siang Cheah (aider) committed 2024-09-01 23:24:30 +01:00
1 parent 33a911dc0c
commit 0555e4f2d1
1 file changed
+2 -2
+2 -2
View File
@@ -113,7 +113,7 @@ def get_model_name(id):
return id
def get_groq_limits_for_stt_model(model_id, script_dir):
def get_groq_limits_for_stt_model(model_id):
print(f"Getting limits for STT model {model_id}...")
r = requests.post(
"https://api.groq.com/openai/v1/audio/transcriptions",
@@ -138,7 +138,7 @@ def get_groq_limits_for_stt_model(model_id, script_dir):
def get_groq_limits_for_model(model_id, script_dir):
if "whisper" in model_id:
return get_groq_limits_for_stt_model(model_id, script_dir)
return get_groq_limits_for_stt_model(model_id)
print(f"Getting limits for chat model {model_id}...")
r = requests.post(
"https://api.groq.com/openai/v1/chat/completions",