fix latest model detection on makersuite

This commit is contained in:
based
2024-03-27 12:12:41 +10:00
parent 96274c0ad6
commit e77be28e66
+1 -1
View File
@@ -8,7 +8,7 @@ async def check_makersuite(key: APIKey, session):
if response.status != 200:
return
response_json = await response.json()
model_names = [model['name'].replace('models/', '') for model in response_json['models']]
model_names = [model['name'].replace('models/', '').replace('-latest', '') for model in response_json['models']]
for model in gemini_models:
if model in model_names:
key.models.append(model)