style: fix formatting issues
This commit is contained in:
1 parent
bc6afc9057
commit
df0d29c81c
2 files changed
+6
-4
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user