mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 22:50:18 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user