Skip to content

Commit d1f8323

Browse files
committed
fixed request timeout
1 parent f0384ff commit d1f8323

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/uipath_llm_client/utils/retry.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import logging
3535
from typing import Any, Callable, NotRequired
3636

37-
from httpx import AsyncHTTPTransport, HTTPTransport, Request, Response
37+
from httpx import AsyncHTTPTransport, HTTPTransport, Request, Response, TimeoutException
3838
from tenacity import (
3939
AsyncRetrying,
4040
RetryCallState,
@@ -57,7 +57,10 @@
5757

5858

5959
# Default retry configuration values
60-
_DEFAULT_RETRY_ON_EXCEPTIONS: tuple[type[UiPathAPIError], ...] = (UiPathRateLimitError,)
60+
_DEFAULT_RETRY_ON_EXCEPTIONS: tuple[type[Exception], ...] = (
61+
UiPathRateLimitError,
62+
TimeoutException,
63+
)
6164
_DEFAULT_INITIAL_DELAY: float = 2.0
6265
_DEFAULT_MAX_DELAY: float = 60.0
6366
_DEFAULT_EXP_BASE: float = 2.0

0 commit comments

Comments
 (0)