File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/memos/mem_reader/read_multi_modal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 []
You can’t perform that action at this time.
0 commit comments