From e812d0d3605043dc0f5ae876bbe37c811ceb064e Mon Sep 17 00:00:00 2001 From: based Date: Sun, 17 Dec 2023 09:15:56 +1000 Subject: [PATCH] fix inactive sub check for mistral --- Mistral.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mistral.py b/Mistral.py index 0b33db9..2dc4ab9 100644 --- a/Mistral.py +++ b/Mistral.py @@ -14,7 +14,7 @@ def check_sub_status(key: APIKey): data = { 'model': 'mistral-tiny', 'messages': [{'role': 'user', 'content': ''}], - 'max_tokens': 0 + 'max_tokens': 1 } response = requests.post(f'https://api.mistral.ai/v1/chat/completions', headers={'Authorization': f'Bearer {key.api_key}'}, json=data) if response.status_code == 401 or response.status_code == 429: