Skip to content

Commit 2e68bac

Browse files
author
yuan.wang
committed
modify code
1 parent 4358d23 commit 2e68bac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/memos/mem_reader/read_multi_modal/tool_parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,12 @@ def parse_fine(
268268
# text will fine parse in full chat content, no need to parse specially
269269
return []
270270
elif part_type == "file":
271-
# TODO: use OCR to extract text from file and generate mem by llm
272-
content = content[0].get("file", {}).get("file_data", "")
271+
# use file content parser to parse file content, no need to parse here
272+
return []
273273
elif part_type == "image_url":
274274
# TODO: use multi-modal llm to generate mem by image url
275275
content = content[0].get("image_url", {}).get("url", "")
276+
return []
276277
elif part_type == "input_audio":
277278
# TODO: unsupport audio for now
278279
return []
@@ -282,4 +283,3 @@ def parse_fine(
282283
else:
283284
# simple string content message, fine parse in full chat content, no need to parse specially
284285
return []
285-
return []

0 commit comments

Comments
 (0)