Fixed mis-use of set_image_model in automatic1111 Image generation

A custom model parameter would always throw an error.. :/
This commit is contained in:
toriset authored and GitHub committed 2025-05-06 18:17:52 +03:00
1 parent ed210517c2
commit 6c957f2407
1 file changed
+1 -1
+1 -1
View File
@@ -623,7 +623,7 @@ async def image_generations(
or request.app.state.config.IMAGE_GENERATION_ENGINE == ""
):
if form_data.model:
set_image_model(form_data.model)
set_image_model(request, form_data.model)
data = {
"prompt": form_data.prompt,