From e08d78d44a22c5d903b0a26bfea658613b72b069 Mon Sep 17 00:00:00 2001 From: Slipstream Date: Thu, 29 May 2025 11:57:12 -0600 Subject: [PATCH] fix: Correct MIME type assignment in image description generation --- gurt/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gurt/api.py b/gurt/api.py index 86ee3a4..91ac508 100644 --- a/gurt/api.py +++ b/gurt/api.py @@ -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])]