mirror of
https://github.com/open-webui/open-webui
synced 2025-06-25 09:47:41 +00:00
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:
parent
ed210517c2
commit
6c957f2407
@ -623,7 +623,7 @@ async def image_generations(
|
|||||||
or request.app.state.config.IMAGE_GENERATION_ENGINE == ""
|
or request.app.state.config.IMAGE_GENERATION_ENGINE == ""
|
||||||
):
|
):
|
||||||
if form_data.model:
|
if form_data.model:
|
||||||
set_image_model(form_data.model)
|
set_image_model(request, form_data.model)
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"prompt": form_data.prompt,
|
"prompt": form_data.prompt,
|
||||||
|
Loading…
Reference in New Issue
Block a user