This commit is contained in:
daxcay
2024-10-16 23:30:09 +05:30
parent 588bb7d413
commit 78d1703aea
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -19,12 +19,11 @@ def getGroqModels(key):
response = response.json()
return [item['id'] for item in response['data'] if 'id' in item]
except (requests.exceptions.RequestException, KeyError, ValueError):
return ['Key Invalid']
return ['Key Error']
api_key = os.environ.get("GROQ_API_KEY")
api_models = getGroqModels(api_key)
class DataSet_GroqChatImage:
def __init__(self):