Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def weather_function(city: str):
def __init__(
self,
*,
api_key: Secret = Secret.from_env_var("GOOGLE_API_KEY"),
api_key: Secret = Secret.from_env_var(["GOOGLE_API_KEY", "GEMINI_API_KEY"]),
model: str = "gemini-2.0-flash",
generation_kwargs: Optional[Dict[str, Any]] = None,
safety_settings: Optional[List[Dict[str, Any]]] = None,
Expand All @@ -240,7 +240,7 @@ def __init__(
"""
Initialize a GoogleGenAIChatGenerator instance.

:param api_key: Google API key, defaults to the `GOOGLE_API_KEY` environment variable,
:param api_key: Google API key, defaults to the `GOOGLE_API_KEY` and `GEMINI_API_KEY` environment variables,
see https://ai.google.dev/gemini-api/docs/api-key for more information.
:param model: Name of the model to use (e.g., "gemini-2.0-flash")
:param generation_kwargs: Configuration for generation (temperature, max_tokens, etc.)
Expand Down
Loading