Skip to content

Commit 6ed3020

Browse files
wanlin31copybara-github
authored andcommitted
chore: Improve APIConnectionTimeoutError message.
PiperOrigin-RevId: 916821324
1 parent 2afdeff commit 6ed3020

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

google/genai/_interactions/_exceptions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ def __init__(self, *, message: str = "Connection error.", request: httpx.Request
8888

8989
class APITimeoutError(APIConnectionError):
9090
def __init__(self, request: httpx.Request) -> None:
91-
super().__init__(message="Request timed out.", request=request)
92-
91+
super().__init__(message="Request timed out. This is a client-side timeout. You can increase the timeout by setting the `timeout` argument on your request or in the client http options.", request=request)
9392

9493
class BadRequestError(APIStatusError):
9594
status_code: Literal[400] = 400 # pyright: ignore[reportIncompatibleVariableOverride]

0 commit comments

Comments
 (0)