mirror of
https://github.com/open-webui/open-webui
synced 2025-05-21 05:35:18 +00:00
fix code format
fix code format
This commit is contained in:
parent
846509bf9f
commit
453200ca1e
@ -518,9 +518,7 @@ async def image_generations(
|
|||||||
|
|
||||||
for image in res["data"]:
|
for image in res["data"]:
|
||||||
if image_url := image.get("url",None):
|
if image_url := image.get("url",None):
|
||||||
image_data, content_type = load_url_image_data(
|
image_data, content_type = load_url_image_data(image_url, headers)
|
||||||
image_url, headers
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
image_data, content_type = load_b64_image_data(image["b64_json"])
|
image_data, content_type = load_b64_image_data(image["b64_json"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user