瀏覽代碼

fix: get_automatic1111_api_auth

Timothy Jaeryang Baek 4 月之前
父節點
當前提交
d3ba77837a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/routers/images.py

+ 1 - 1
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},