mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
Move file metadata into the [meta][data] key
This commit is contained in:
parent
ffb9e73975
commit
2b05c9d944
@ -56,11 +56,11 @@ def upload_file(
|
|||||||
"id": id,
|
"id": id,
|
||||||
"filename": name,
|
"filename": name,
|
||||||
"path": file_path,
|
"path": file_path,
|
||||||
"data": file_metadata,
|
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": name,
|
"name": name,
|
||||||
"content_type": file.content_type,
|
"content_type": file.content_type,
|
||||||
"size": len(contents),
|
"size": len(contents),
|
||||||
|
"data": file_metadata,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user