fix openai image reference home paths

This commit is contained in:
sbyinin
2026-06-19 17:16:09 +08:00
committed by Xubin Ren
parent adb737b614
commit 44f7bbae50
2 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -977,7 +977,7 @@ class OpenAIImageGenerationClient(ImageGenerationProvider):
handles: list[Any] = []
try:
for path in reference_images:
p = Path(path)
p = Path(path).expanduser()
raw = p.read_bytes()
mime = detect_image_mime(raw)
if mime is None: