diff --git a/backend/open_webui/routers/images.py b/backend/open_webui/routers/images.py index 4cc2a99101..8aabf0f73b 100644 --- a/backend/open_webui/routers/images.py +++ b/backend/open_webui/routers/images.py @@ -549,9 +549,7 @@ async def image_generations( if ENABLE_FORWARD_USER_INFO_HEADERS: headers = include_user_info_headers(headers, user) - url = ( - f"{request.app.state.config.IMAGES_OPENAI_API_BASE_URL}/images/generations", - ) + url = f"{request.app.state.config.IMAGES_OPENAI_API_BASE_URL}/images/generations" if request.app.state.config.IMAGES_OPENAI_API_VERSION: url = f"{url}?api-version={request.app.state.config.IMAGES_OPENAI_API_VERSION}"