From 067c94810af0b58b8c74208cef9c39745a1b9018 Mon Sep 17 00:00:00 2001 From: Self Denial Date: Sat, 13 Apr 2024 19:55:43 -0600 Subject: [PATCH] Fix open-webui/open-webui#1500 Looks like the convention update per commit 0981fae161545d4f9c723f5fc901565fced818ec missed `config.py`. --- backend/apps/images/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/apps/images/main.py b/backend/apps/images/main.py index 271928f02..f39984de0 100644 --- a/backend/apps/images/main.py +++ b/backend/apps/images/main.py @@ -32,7 +32,7 @@ import logging from config import ( SRC_LOG_LEVELS, CACHE_DIR, - IMAGE_GENERATION_ENABLED, + ENABLE_IMAGE_GENERATION, AUTOMATIC1111_BASE_URL, COMFYUI_BASE_URL, ) @@ -54,7 +54,7 @@ app.add_middleware( ) app.state.ENGINE = "" -app.state.ENABLED = IMAGE_GENERATION_ENABLED +app.state.ENABLED = ENABLE_IMAGE_GENERATION app.state.OPENAI_API_KEY = "" app.state.MODEL = ""