Skip to content

Commit ff12b46

Browse files
jaycee-licopybara-github
authored andcommitted
docs: Add documentation for the retry behavior
PiperOrigin-RevId: 824660249
1 parent 4fa2edd commit ff12b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/genai/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ class HttpRetryOptions(_common.BaseModel):
14811481
attempts: Optional[int] = Field(
14821482
default=None,
14831483
description="""Maximum number of attempts, including the original request.
1484-
If 0 or 1, it means no retries.""",
1484+
If 0 or 1, it means no retries. If not specified, default to 5.""",
14851485
)
14861486
initial_delay: Optional[float] = Field(
14871487
default=None,
@@ -1511,7 +1511,7 @@ class HttpRetryOptionsDict(TypedDict, total=False):
15111511

15121512
attempts: Optional[int]
15131513
"""Maximum number of attempts, including the original request.
1514-
If 0 or 1, it means no retries."""
1514+
If 0 or 1, it means no retries. If not specified, default to 5."""
15151515

15161516
initial_delay: Optional[float]
15171517
"""Initial delay before the first retry, in fractions of a second. If not specified, default to 1.0 second."""

0 commit comments

Comments
 (0)