Skip to content

Commit b844994

Browse files
fix: increase default timeout
1 parent 670f122 commit b844994

8 files changed

Lines changed: 20 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `uipath_llm_client` (core package) will be documented in this file.
44

5+
## [1.11.2] - 2026-05-18
6+
7+
### Changed
8+
- Increased the default `X-UiPath-LLMGateway-TimeoutSeconds` request header value in `UIPATH_DEFAULT_REQUEST_HEADERS` from `295` to `895` seconds.
9+
510
## [1.11.0] - 2026-05-08
611

712
### Changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,9 +784,9 @@ The logger will record:
784784

785785
All requests automatically include the following default headers:
786786

787-
| Header | Value | Description |
788-
|--------|-------|-------------|
789-
| `X-UiPath-LLMGateway-TimeoutSeconds` | `295` | Server-side timeout for LLM Gateway |
787+
| Header | Value | Description |
788+
|--------|--------|-------------|
789+
| `X-UiPath-LLMGateway-TimeoutSeconds` | `895` | Server-side timeout for LLM Gateway |
790790
| `X-UiPath-LLMGateway-AllowFull4xxResponse` | `true` | Returns full error response bodies for 4xx errors |
791791

792792
### Authentication Auto-Refresh

packages/uipath_langchain_client/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `uipath_langchain_client` will be documented in this file.
44

5+
## [1.11.2] - 2026-05-18
6+
7+
### Changed
8+
- Bumped `uipath-llm-client` floor to `>=1.11.2` to pick up the increased default `X-UiPath-LLMGateway-TimeoutSeconds` (295 → 895) in `UIPATH_DEFAULT_REQUEST_HEADERS`.
9+
510
## [1.11.1] - 2026-05-13
611

712
### Fixed

packages/uipath_langchain_client/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [
88
"langchain>=1.2.15,<2.0.0",
9-
"uipath-llm-client>=1.11.0,<2.0.0",
9+
"uipath-llm-client>=1.11.2,<2.0.0",
1010
]
1111

1212
[project.optional-dependencies]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "UiPath LangChain Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services via LangChain."
3-
__version__ = "1.11.1"
3+
__version__ = "1.11.2"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "UiPath LLM Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services."
3-
__version__ = "1.11.0"
3+
__version__ = "1.11.2"

src/uipath/llm_client/utils/headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from uipath.llm_client.settings.constants import ApiType, RoutingMode
88

99
UIPATH_DEFAULT_REQUEST_HEADERS: dict[str, str] = {
10-
"X-UiPath-LLMGateway-TimeoutSeconds": "295", # server side timeout, default is 10, maximum is 300
10+
"X-UiPath-LLMGateway-TimeoutSeconds": "895", # server side timeout
1111
"X-UiPath-LLMGateway-AllowFull4xxResponse": "false", # allow full 4xx responses (default is false) — kept false to avoid PII leakage in logs
1212
}
1313

tests/langchain/features/test_default_headers_merge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_no_user_headers_preserves_class_defaults(self):
3535
with patch.dict(os.environ, LLMGW_ENV, clear=True):
3636
chat = UiPathChat(model="gpt-4o", settings=LLMGatewaySettings())
3737
headers = chat.uipath_sync_client.headers
38-
assert headers.get("x-uipath-llmgateway-timeoutseconds") == "295"
38+
assert headers.get("x-uipath-llmgateway-timeoutseconds") == "895"
3939
assert headers.get("x-uipath-llmgateway-allowfull4xxresponse") == "false"
4040

4141
def test_user_headers_do_not_remove_class_defaults(self):
@@ -46,7 +46,7 @@ def test_user_headers_do_not_remove_class_defaults(self):
4646
default_headers={"x-my-custom": "value"},
4747
)
4848
headers = chat.uipath_sync_client.headers
49-
assert headers.get("x-uipath-llmgateway-timeoutseconds") == "295"
49+
assert headers.get("x-uipath-llmgateway-timeoutseconds") == "895"
5050
assert headers.get("x-uipath-llmgateway-allowfull4xxresponse") == "false"
5151
assert headers.get("x-my-custom") == "value"
5252

@@ -69,6 +69,6 @@ def test_async_client_also_merges(self):
6969
default_headers={"x-my-custom": "async-value"},
7070
)
7171
headers = chat.uipath_async_client.headers
72-
assert headers.get("x-uipath-llmgateway-timeoutseconds") == "295"
72+
assert headers.get("x-uipath-llmgateway-timeoutseconds") == "895"
7373
assert headers.get("x-uipath-llmgateway-allowfull4xxresponse") == "false"
7474
assert headers.get("x-my-custom") == "async-value"

0 commit comments

Comments
 (0)