mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
style: fix formatting issues
This commit is contained in:
parent
bc6afc9057
commit
df0d29c81c
2 changed files with 6 additions and 4 deletions
|
|
@ -551,8 +551,10 @@ async def image_generations(
|
|||
}
|
||||
|
||||
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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue