mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-22 11:52:20 -05:00
fix: correct JPEG media type in get_image_url to prevent API errors (#5897)
Co-authored-by: Will Ratner <will@ratner.tech>
This commit is contained in:
@@ -70,7 +70,7 @@ class OpenAILocalImage(OpenAIImageBase):
|
||||
)
|
||||
with open(image, "rb") as f:
|
||||
b64content = base64.b64encode(f.read()).decode("utf-8")
|
||||
return f"data:image/jpg;base64,{b64content}"
|
||||
return f"data:image/jpeg;base64,{b64content}"
|
||||
|
||||
|
||||
class OpenAIService(BaseService):
|
||||
|
||||
Reference in New Issue
Block a user