From df0d29c81c83d598aa868275e4362f30678c73a2 Mon Sep 17 00:00:00 2001 From: Andreas Fuerer Date: Tue, 2 Sep 2025 19:15:32 +0200 Subject: [PATCH] style: fix formatting issues --- backend/open_webui/routers/images.py | 8 +++++--- src/lib/components/admin/Settings/Images.svelte | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/open_webui/routers/images.py b/backend/open_webui/routers/images.py index f10a9e1690..802a3e9924 100644 --- a/backend/open_webui/routers/images.py +++ b/backend/open_webui/routers/images.py @@ -549,10 +549,12 @@ async def image_generations( else {"response_format": "b64_json"} ), } - + api_version_query_param = "" - if (request.app.state.config.IMAGES_OPENAI_API_VERSION): - api_version_query_param = f"?api-version={request.app.state.config.IMAGES_OPENAI_API_VERSION}" + if request.app.state.config.IMAGES_OPENAI_API_VERSION: + api_version_query_param = ( + f"?api-version={request.app.state.config.IMAGES_OPENAI_API_VERSION}" + ) # Use asyncio.to_thread for the requests.post call r = await asyncio.to_thread( diff --git a/src/lib/components/admin/Settings/Images.svelte b/src/lib/components/admin/Settings/Images.svelte index 37a4092231..0c19e0ba71 100644 --- a/src/lib/components/admin/Settings/Images.svelte +++ b/src/lib/components/admin/Settings/Images.svelte @@ -624,7 +624,7 @@ - +
{$i18n.t('API Version')}