We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
timeout
max_retries
1 parent 0b42534 commit ad1f8d6Copy full SHA for ad1f8d6
libs/genai/langchain_google_genai/_common.py
@@ -58,11 +58,11 @@ class _BaseGoogleGenerativeAI(BaseModel):
58
"""Number of chat completions to generate for each prompt. Note that the API may
59
not return the full ``n`` completions if duplicates are generated."""
60
61
- max_retries: int = 6
+ max_retries: int = Field(default=6, alias="retries")
62
"""The maximum number of retries to make when generating. If unset, will default
63
to ``6``."""
64
65
- timeout: Optional[float] = None
+ timeout: Optional[float] = Field(default=None, alias="request_timeout")
66
"""The maximum number of seconds to wait for a response."""
67
68
client_options: Optional[Dict] = Field(
0 commit comments