mirror of
https://github.com/langgenius/dify.git
synced 2025-11-12 17:34:48 +00:00
Fix/assistant none type (#2145)
This commit is contained in:
parent
9525ca08b9
commit
27828f44b9
@ -128,8 +128,9 @@ class MessageFileParser:
|
|||||||
|
|
||||||
# group by file type and convert file args or message files to FileObj
|
# group by file type and convert file args or message files to FileObj
|
||||||
for file in files:
|
for file in files:
|
||||||
if file.belongs_to == FileBelongsTo.ASSISTANT.value:
|
if isinstance(file, MessageFile):
|
||||||
continue
|
if file.belongs_to == FileBelongsTo.ASSISTANT.value:
|
||||||
|
continue
|
||||||
|
|
||||||
file_obj = self._to_file_obj(file, file_upload_config)
|
file_obj = self._to_file_obj(file, file_upload_config)
|
||||||
if file_obj.type not in type_file_objs:
|
if file_obj.type not in type_file_objs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user