mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-20 21:43:36 -07:00
fix: correct JPEG media type in get_image_url to prevent API errors (#5897)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker Nightly Production / Frontend Tests (push) Waiting to run
Docker Nightly Production / Build Package (push) Waiting to run
Docker Nightly Production / Build Tagged Release (push) Blocked by required conditions
Docker Nightly Production / Notify Discord (push) Blocked by required conditions
Docker Nightly Production / Backend Server Tests (push) Waiting to run
Release Drafter / ✏️ Draft release (push) Waiting to run
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker Nightly Production / Frontend Tests (push) Waiting to run
Docker Nightly Production / Build Package (push) Waiting to run
Docker Nightly Production / Build Tagged Release (push) Blocked by required conditions
Docker Nightly Production / Notify Discord (push) Blocked by required conditions
Docker Nightly Production / Backend Server Tests (push) Waiting to run
Release Drafter / ✏️ Draft release (push) Waiting to run
Co-authored-by: Will Ratner <will@ratner.tech>
This commit is contained in:
parent
357f843df5
commit
2ae3427a59
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