From d3ba77837a814214feb581f44653a0bb3ef8662d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 25 Dec 2024 13:26:13 -0700 Subject: [PATCH] fix: get_automatic1111_api_auth --- backend/open_webui/routers/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/images.py b/backend/open_webui/routers/images.py index f9769481f..a42a7be5b 100644 --- a/backend/open_webui/routers/images.py +++ b/backend/open_webui/routers/images.py @@ -200,7 +200,7 @@ def set_image_model(request: Request, model: str): log.info(f"Setting image model to {model}") request.app.state.config.IMAGE_GENERATION_MODEL = model if request.app.state.config.IMAGE_GENERATION_ENGINE in ["", "automatic1111"]: - api_auth = get_automatic1111_api_auth() + api_auth = get_automatic1111_api_auth(request) r = requests.get( url=f"{request.app.state.config.AUTOMATIC1111_BASE_URL}/sdapi/v1/options", headers={"authorization": api_auth},