fix openai image reference home paths
This commit is contained in:
1 parent
adb737b614
commit
44f7bbae50
2 files changed
+29
-1
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user