Merge branch 'main' into feat/queue_batch

This commit is contained in:
Dr.Lt.Data
2025-03-24 22:53:13 +09:00
15 changed files with 5002 additions and 3939 deletions

View File

@@ -1571,6 +1571,12 @@ async def _disable_node(json_data):
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