diff --git a/simplemind/providers/gemini.py b/simplemind/providers/gemini.py index 0d0ad1e..79e7e70 100644 --- a/simplemind/providers/gemini.py +++ b/simplemind/providers/gemini.py @@ -96,4 +96,4 @@ class Gemini(BaseProvider): except Exception as e: # Handle the exception appropriately, e.g., log the error or raise a custom exception raise RuntimeError(f"Failed to generate text with Gemini API: {e}") from e - return response.result + return response.text