mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: bytes style image issue. (#9304)
### What problem does this PR solve? #9302 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -60,7 +60,7 @@ class Base(ABC):
|
||||
if not images:
|
||||
return text
|
||||
|
||||
if isinstance(images, str):
|
||||
if isinstance(images, str) or "bytes" in type(images).__name__:
|
||||
images = [images]
|
||||
|
||||
pmpt = [{"type": "text", "text": text}]
|
||||
|
||||
Reference in New Issue
Block a user