mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 22:13:31 -07:00
fix open ai mime type
This commit is contained in:
parent
04d0144369
commit
659a211441
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class OpenAILocalImage(OpenAIImageBase):
|
||||||
)
|
)
|
||||||
with open(image, "rb") as f:
|
with open(image, "rb") as f:
|
||||||
b64content = base64.b64encode(f.read()).decode("utf-8")
|
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):
|
class OpenAIService(BaseService):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue