From 588bb7d41349f66f8ca7a331bc7409cf32fc0c08 Mon Sep 17 00:00:00 2001 From: daxcay Date: Wed, 16 Oct 2024 23:12:11 +0530 Subject: [PATCH] Update DataSet_GroqChat.py --- classes/DataSet_GroqChat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/DataSet_GroqChat.py b/classes/DataSet_GroqChat.py index d85a867..42ecafc 100644 --- a/classes/DataSet_GroqChat.py +++ b/classes/DataSet_GroqChat.py @@ -10,7 +10,7 @@ def getGroqModels(key): "Content-Type": "application/json" } response = requests.get(url, headers=headers) - response.raise_for_status() # Raises HTTPError for bad responses + response.raise_for_status() response = response.json() return [item['id'] for item in response['data'] if 'id' in item] except (requests.exceptions.RequestException, KeyError, ValueError):