Merge branch 'main' into feat/cacheless

This commit is contained in:
Dr.Lt.Data
2025-04-10 12:20:29 +09:00
14 changed files with 11023 additions and 5487 deletions

View File

@@ -1344,6 +1344,12 @@ async def disable_node(request):
async def check_whitelist_for_model(item):
json_obj = await core.get_data_by_mode('cache', 'model-list.json')
for x in json_obj.get('models', []):
if x['save_path'] == item['save_path'] and x['base'] == item['base'] and x['filename'] == item['filename']:
return True
json_obj = await core.get_data_by_mode('local', 'model-list.json')
for x in json_obj.get('models', []):
if x['save_path'] == item['save_path'] and x['base'] == item['base'] and x['filename'] == item['filename']:
return True