mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
Merge pull request #8066 from open-webui/dev
fix: get_automatic1111_api_auth
This commit is contained in:
commit
a8289745da
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ def set_image_model(request: Request, model: str):
|
||||||
log.info(f"Setting image model to {model}")
|
log.info(f"Setting image model to {model}")
|
||||||
request.app.state.config.IMAGE_GENERATION_MODEL = model
|
request.app.state.config.IMAGE_GENERATION_MODEL = model
|
||||||
if request.app.state.config.IMAGE_GENERATION_ENGINE in ["", "automatic1111"]:
|
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(
|
r = requests.get(
|
||||||
url=f"{request.app.state.config.AUTOMATIC1111_BASE_URL}/sdapi/v1/options",
|
url=f"{request.app.state.config.AUTOMATIC1111_BASE_URL}/sdapi/v1/options",
|
||||||
headers={"authorization": api_auth},
|
headers={"authorization": api_auth},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue