fix: Correct MIME type assignment in image description generation
This commit is contained in:
parent
d7e64fdf4b
commit
e08d78d44a
@ -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])]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user