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

@@ -255,7 +255,7 @@ comfy_ui_revision = "Unknown"
comfy_ui_commit_datetime = datetime(1900, 1, 1, 0, 0, 0)
channel_dict = None
valid_channels = set()
valid_channels = {'default', 'local'}
channel_list = None

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