fix(metadata-overwrite): rename 'checkpoint' input to 'model'

This commit is contained in:
Will Miao
2026-07-26 10:59:38 +08:00
parent 84e708328b
commit f49b4ba4db
4 changed files with 17 additions and 7 deletions

View File

@@ -681,6 +681,13 @@ class MetadataProcessor:
if value: # truthy check — only overwrite when user provided a real value
params[key] = value
# Bridge: the overwrite node exposes the field as "model" (more accurate),
# but the internal pipeline key remains "checkpoint" for backward compatibility
# with A1111 metadata format and downstream consumers.
if params.get("model"):
params["checkpoint"] = params["model"]
del params["model"]
return params
@staticmethod