mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
Co-authored-by: werido <359066432@qq.com>
This commit is contained in:
@@ -42,6 +42,7 @@ message_file_fields = {
|
||||
"size": fields.Integer,
|
||||
"transfer_method": fields.String,
|
||||
"belongs_to": fields.String(default="user"),
|
||||
"upload_file_id": fields.String(default=None),
|
||||
}
|
||||
|
||||
agent_thought_fields = {
|
||||
|
||||
@@ -1155,7 +1155,7 @@ class Message(db.Model): # type: ignore[name-defined]
|
||||
files.append(file)
|
||||
|
||||
result = [
|
||||
{"belongs_to": message_file.belongs_to, **file.to_dict()}
|
||||
{"belongs_to": message_file.belongs_to, "upload_file_id": message_file.upload_file_id, **file.to_dict()}
|
||||
for (file, message_file) in zip(files, message_files)
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user