diff --git a/gemini.py b/gemini.py index 3a0ef72..d3c69d0 100644 --- a/gemini.py +++ b/gemini.py @@ -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: