mirror of
https://github.com/tiennm99/cheahjs-free-llm-api-resources.git
synced 2026-10-13 22:15:30 +00:00
refactor: remove script_dir param from get_groq_limits_for_stt_model
This commit is contained in:
1 parent
33a911dc0c
commit
0555e4f2d1
1 file changed
+2
-2
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user