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:
2024-10-31 13:04:40 -04:00
parent 222d3025b1
commit 8f43b660ea
+1 -1
View File
@@ -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