dev: refactor; populate models in more nodes; use Pydantic in endpoints for input validation

This commit is contained in:
bigcat88
2025-08-23 20:14:22 +03:00
parent f92307cd4c
commit 5c1b5973ac
8 changed files with 141 additions and 280 deletions

View File

@@ -212,7 +212,7 @@ database_default_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "user", "comfyui.db")
)
parser.add_argument("--database-url", type=str, default=f"sqlite+aiosqlite:///{database_default_path}", help="Specify the database URL, e.g. for an in-memory database you can use 'sqlite+aiosqlite:///:memory:'.")
parser.add_argument("--disable-model-processing", action="store_true", help="Disable model file processing, e.g. computing hashes and extracting metadata.")
parser.add_argument("--disable-model-processing", action="store_true", help="Disable automatic processing of the model file, such as calculating hashes and populating the database.")
if comfy.options.args_parsing:
args = parser.parse_args()