Fix model selection

This commit is contained in:
Without Ordinary
2025-08-25 03:31:37 -07:00
parent 71ac75b26c
commit 5530d4e637
+4 -16
View File
@@ -365,22 +365,10 @@ class OpenOutpainterServingManager:
]
case '/sdapi/v1/sd-models':
# return list of checkpoints, can just be dummy option and config this within workflow
# only "title" and "sha256", the hash is only used for selecting the current returned from options
# oop gets happy if the title contains "inpainting"
# [
# {
# "title": "Placeholder_Checkpoint_Name",
# "sha256": "69",
# },
# ]
output = []
for model_name in self.oop_checkpoints:
output.append({
"title": model_name,
"sha256": model_name, # fun fact, this doesn't actually have to be a hash
})
return output
# return list of checkpoints
# Previously this returned an A1111 styled list of models,
# but that isn't required anymore, just need a simple list now
return self.oop_checkpoints
case '/sdapi/v1/loras':
# return list of loras, can be empty and config this within workflow