Skip to content

Commit 9dbcf09

Browse files
fix: set timeout to 895 seconds (#841)
1 parent 8184fd7 commit 9dbcf09

7 files changed

Lines changed: 9 additions & 12 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.10.20"
3+
version = "0.10.21"
44
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath_langchain/_utils/_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def get_execution_folder_path() -> str | None:
77

88

99
def get_default_timeout() -> float:
10-
return float(os.getenv("UIPATH_TIMEOUT_SECONDS", "300"))
10+
return float(os.getenv("UIPATH_TIMEOUT_SECONDS", "895"))

src/uipath_langchain/_utils/_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class UiPathClientSettings(BaseSettings):
4242
requesting_feature: str = Field(
4343
default="langgraph-agent", alias="UIPATH_REQUESTING_FEATURE"
4444
)
45-
timeout_seconds: str = Field(default="300", alias="UIPATH_TIMEOUT_SECONDS")
45+
timeout_seconds: str = Field(default="895", alias="UIPATH_TIMEOUT_SECONDS")
4646
action_name: str = Field(default="DefaultActionName", alias="UIPATH_ACTION_NAME")
4747
action_id: str = Field(default="DefaultActionId", alias="UIPATH_ACTION_ID")
4848

src/uipath_langchain/chat/_legacy/bedrock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
resource_override,
1414
)
1515

16+
from uipath_langchain._utils._environment import get_default_timeout
17+
1618
from .http_client import build_uipath_headers, resolve_gateway_url
1719
from .http_client.header_capture import HeaderCapture
1820
from .http_client.retryers.bedrock import AsyncBedrockRetryer, BedrockRetryer
@@ -120,7 +122,7 @@ def get_client(self):
120122
verify=ca_bundle if ca_bundle is not None else False,
121123
config=self._unsigned_config(
122124
retries={"total_max_attempts": 1},
123-
read_timeout=300,
125+
read_timeout=get_default_timeout(),
124126
),
125127
)
126128
client.meta.events.register(

src/uipath_langchain/chat/chat_model_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
)
2525

2626
_UNSET: Final[Any] = object()
27-
DEFAULT_TIMEOUT_SECONDS: Final[float] = 300.0
27+
DEFAULT_TIMEOUT_SECONDS: Final[float] = 895.0
2828
DEFAULT_MAX_TOKENS: Final[int] = 1000
2929
DEFAULT_TEMPERATURE: Final[float] = 0.0
3030
DEFAULT_MAX_RETRIES: Final[int] = 3
@@ -66,7 +66,7 @@ def get_chat_model(
6666
historical default from ``UiPathRequestMixin``. Pass ``None`` to
6767
forward an explicit unset value (lets the underlying client apply
6868
its own default or use no limit).
69-
timeout: Request timeout in seconds. Defaults to 300 seconds.
69+
timeout: Request timeout in seconds. Defaults to 895 seconds.
7070
max_retries: Max retry count. Defaults to 3.
7171
callbacks: LangChain callbacks (handlers or a manager) attached to the
7272
returned chat model. Accepts ``list[BaseCallbackHandler]`` or a

testcases/multimodal-invoke/src/main.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ def _create_model(config: ModelTestConfig, client_settings: UiPathBaseSettings)
7575
label="VertexAI (Google) - UiPathChatGoogleGenerativeAI",
7676
model_name="gemini-2.5-pro",
7777
),
78-
# VendorType.VERTEXAI (Google family) -> UiPathChatGoogleGenerativeAI
79-
ModelTestConfig(
80-
label="VertexAI (Google) - UiPathChatGoogleGenerativeAI",
81-
model_name="gemini-3-pro-preview",
82-
),
8378
# VendorType.AWSBEDROCK (UiPath-owned) -> UiPathChatBedrockConverse (converse API by default)
8479
ModelTestConfig(
8580
label="Bedrock (default/converse) - UiPathChatBedrockConverse",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)