gemini: strip mimetype

This commit is contained in:
projectmoon 2024-12-01 12:15:31 +01:00
parent fdaac4aa7b
commit 5c35f566ef
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ def handle_content(resp: SuccessResponse) -> str:
except ValueError:
mime_type = resp.meta
mime_type = mime_type.strip()
if mime_type == "text/gemini":
return resp.data().strip()
else: