浏览代码

Move file metadata into the [meta][data] key

Rodrigo Agundez 2 月之前
父节点
当前提交
2b05c9d944
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/routers/files.py

+ 1 - 1
backend/open_webui/routers/files.py

@@ -56,11 +56,11 @@ def upload_file(
                     "id": id,
                     "filename": name,
                     "path": file_path,
-                    "data": file_metadata,
                     "meta": {
                         "name": name,
                         "content_type": file.content_type,
                         "size": len(contents),
+                        "data": file_metadata,
                     },
                 }
             ),