mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
fix inactive sub check for mistral
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user