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:
Kevin Hu
2025-08-07 15:20:01 +08:00
committed by GitHub
parent dc48c3863d
commit a2e1f5618d
3 changed files with 6 additions and 6 deletions

View File

@ -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}]