From c11a68bf79a96d374005f4b3375e605c6ba9606b Mon Sep 17 00:00:00 2001 From: bymyself Date: Fri, 27 Feb 2026 17:14:21 -0800 Subject: [PATCH] fix: use folder_paths to resolve model directory in placeholder text Amp-Thread-ID: https://ampcode.com/threads/T-019ca1cb-0150-7549-8b1b-6713060d3408 --- folder_paths.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index ff9230021..964cc0e6d 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -481,7 +481,15 @@ def get_model_placeholder(folder_name: str) -> str: Returns: A user-friendly placeholder string indicating where models should be placed. """ - return f"No models found in ComfyUI/models/{folder_name} folder..." + folder_name = map_legacy(folder_name) + try: + paths = get_folder_paths(folder_name) + except KeyError: + paths = [] + + if paths: + return f"No models found — add to: {paths[0]}" + return f"No models found for '{folder_name}'..." def get_input_subfolders() -> list[str]: