mirror of
https://github.com/open-webui/open-webui
synced 2025-04-07 14:14:50 +00:00
refac
This commit is contained in:
parent
ab70f1bb50
commit
953e408077
@ -415,7 +415,7 @@ def upload_image(request, image_metadata, image_data, content_type, user):
|
|||||||
image_format = mimetypes.guess_extension(content_type)
|
image_format = mimetypes.guess_extension(content_type)
|
||||||
file = UploadFile(
|
file = UploadFile(
|
||||||
file=io.BytesIO(image_data),
|
file=io.BytesIO(image_data),
|
||||||
filename=f"generated{image_format}", # will be converted to a unique ID on upload_file
|
filename=f"generated-image{image_format}", # will be converted to a unique ID on upload_file
|
||||||
headers={
|
headers={
|
||||||
"content-type": content_type,
|
"content-type": content_type,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user