From 6defcaf982009ae5e44193fe64d9fa412eb4d3fc Mon Sep 17 00:00:00 2001 From: lixiangcheng1 Date: Mon, 29 Dec 2025 17:18:26 +0800 Subject: [PATCH] [fxi]PNG image failed to parse after uploading [TAPD] ID: 1004154 --- api/app/core/rag/app/picture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/core/rag/app/picture.py b/api/app/core/rag/app/picture.py index da133c27..99c3603d 100644 --- a/api/app/core/rag/app/picture.py +++ b/api/app/core/rag/app/picture.py @@ -51,7 +51,7 @@ def chunk(filename, binary, lang, callback=None, vision_model=None, **kwargs): img_binary = io.BytesIO() img.save(img_binary, format="JPEG") img_binary.seek(0) - ans = vision_model.describe(img_binary.read()) + ans, ans_num_tokens = vision_model.describe(img_binary.read()) callback(0.8, "CV LLM respond: %s ..." % ans[:32]) txt += "\n" + ans tokenize(doc, txt, eng)