From 8f43b660ea88ed35e4e02496f0e4a27a06423cb6 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 31 Oct 2024 13:04:40 -0400 Subject: [PATCH] refactor: update return value in Gemini provider The return value in the Gemini provider's `generate_text` method was updated from `response.result` to `response.text`. This change ensures consistency and clarity in the codebase. --- simplemind/providers/gemini.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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