fix: Correct MIME type assignment in image description generation

This commit is contained in:
Slipstream 2025-05-29 11:57:12 -06:00
parent d7e64fdf4b
commit e08d78d44a
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -1929,7 +1929,7 @@ async def generate_image_description(
"Don't output anything other than the description text. E.G. don't include something like \"Heres the description: \" before the text."
)
image_part = types.Part(inline_data=types.Blob(data=image_bytes, mime_type=clean_mime_type))
image_part = types.Part(inline_data=types.Blob(data=image_bytes, mime_type=final_mime_type))
text_part = types.Part(text=prompt_text)
description_contents: List[types.Content] = [types.Content(role="user", parts=[image_part, text_part])]