From 3f61111b1f30135ece9a17e063021a763b1cec88 Mon Sep 17 00:00:00 2001 From: Ionut Mihalache <67947900+ionut-mihalache-uipath@users.noreply.github.com> Date: Mon, 11 May 2026 18:17:22 +0300 Subject: [PATCH] fix: increase default timeout --- CHANGELOG.md | 5 +++++ README.md | 6 +++--- packages/uipath_langchain_client/CHANGELOG.md | 5 +++++ packages/uipath_langchain_client/pyproject.toml | 2 +- .../src/uipath_langchain_client/__version__.py | 2 +- src/uipath/llm_client/__version__.py | 2 +- src/uipath/llm_client/utils/headers.py | 2 +- tests/langchain/features/test_default_headers_merge.py | 6 +++--- 8 files changed, 20 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c988594..d4ac5c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `uipath_llm_client` (core package) will be documented in this file. +## [1.11.2] - 2026-05-18 + +### Changed +- Increased the default `X-UiPath-LLMGateway-TimeoutSeconds` request header value in `UIPATH_DEFAULT_REQUEST_HEADERS` from `295` to `895` seconds. + ## [1.11.0] - 2026-05-08 ### Changed diff --git a/README.md b/README.md index 848e045..cab9356 100644 --- a/README.md +++ b/README.md @@ -784,9 +784,9 @@ The logger will record: All requests automatically include the following default headers: -| Header | Value | Description | -|--------|-------|-------------| -| `X-UiPath-LLMGateway-TimeoutSeconds` | `295` | Server-side timeout for LLM Gateway | +| Header | Value | Description | +|--------|--------|-------------| +| `X-UiPath-LLMGateway-TimeoutSeconds` | `895` | Server-side timeout for LLM Gateway | | `X-UiPath-LLMGateway-AllowFull4xxResponse` | `true` | Returns full error response bodies for 4xx errors | ### Authentication Auto-Refresh diff --git a/packages/uipath_langchain_client/CHANGELOG.md b/packages/uipath_langchain_client/CHANGELOG.md index 9768bcd..78da3d8 100644 --- a/packages/uipath_langchain_client/CHANGELOG.md +++ b/packages/uipath_langchain_client/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `uipath_langchain_client` will be documented in this file. +## [1.11.2] - 2026-05-18 + +### Changed +- 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`. + ## [1.11.1] - 2026-05-13 ### Fixed diff --git a/packages/uipath_langchain_client/pyproject.toml b/packages/uipath_langchain_client/pyproject.toml index 1f57b4d..8754562 100644 --- a/packages/uipath_langchain_client/pyproject.toml +++ b/packages/uipath_langchain_client/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.md" requires-python = ">=3.11" dependencies = [ "langchain>=1.2.15,<2.0.0", - "uipath-llm-client>=1.11.0,<2.0.0", + "uipath-llm-client>=1.11.2,<2.0.0", ] [project.optional-dependencies] diff --git a/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py b/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py index 7d3ecfc..127ed99 100644 --- a/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py +++ b/packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py @@ -1,3 +1,3 @@ __title__ = "UiPath LangChain Client" __description__ = "A Python client for interacting with UiPath's LLM services via LangChain." -__version__ = "1.11.1" +__version__ = "1.11.2" diff --git a/src/uipath/llm_client/__version__.py b/src/uipath/llm_client/__version__.py index cf80ec7..548fbb8 100644 --- a/src/uipath/llm_client/__version__.py +++ b/src/uipath/llm_client/__version__.py @@ -1,3 +1,3 @@ __title__ = "UiPath LLM Client" __description__ = "A Python client for interacting with UiPath's LLM services." -__version__ = "1.11.0" +__version__ = "1.11.2" diff --git a/src/uipath/llm_client/utils/headers.py b/src/uipath/llm_client/utils/headers.py index 0b3dfb1..87c74f4 100644 --- a/src/uipath/llm_client/utils/headers.py +++ b/src/uipath/llm_client/utils/headers.py @@ -7,7 +7,7 @@ from uipath.llm_client.settings.constants import ApiType, RoutingMode UIPATH_DEFAULT_REQUEST_HEADERS: dict[str, str] = { - "X-UiPath-LLMGateway-TimeoutSeconds": "295", # server side timeout, default is 10, maximum is 300 + "X-UiPath-LLMGateway-TimeoutSeconds": "895", # server side timeout "X-UiPath-LLMGateway-AllowFull4xxResponse": "false", # allow full 4xx responses (default is false) — kept false to avoid PII leakage in logs } diff --git a/tests/langchain/features/test_default_headers_merge.py b/tests/langchain/features/test_default_headers_merge.py index 9984b85..bc8020c 100644 --- a/tests/langchain/features/test_default_headers_merge.py +++ b/tests/langchain/features/test_default_headers_merge.py @@ -35,7 +35,7 @@ def test_no_user_headers_preserves_class_defaults(self): with patch.dict(os.environ, LLMGW_ENV, clear=True): chat = UiPathChat(model="gpt-4o", settings=LLMGatewaySettings()) headers = chat.uipath_sync_client.headers - assert headers.get("x-uipath-llmgateway-timeoutseconds") == "295" + assert headers.get("x-uipath-llmgateway-timeoutseconds") == "895" assert headers.get("x-uipath-llmgateway-allowfull4xxresponse") == "false" def test_user_headers_do_not_remove_class_defaults(self): @@ -46,7 +46,7 @@ def test_user_headers_do_not_remove_class_defaults(self): default_headers={"x-my-custom": "value"}, ) headers = chat.uipath_sync_client.headers - assert headers.get("x-uipath-llmgateway-timeoutseconds") == "295" + assert headers.get("x-uipath-llmgateway-timeoutseconds") == "895" assert headers.get("x-uipath-llmgateway-allowfull4xxresponse") == "false" assert headers.get("x-my-custom") == "value" @@ -69,6 +69,6 @@ def test_async_client_also_merges(self): default_headers={"x-my-custom": "async-value"}, ) headers = chat.uipath_async_client.headers - assert headers.get("x-uipath-llmgateway-timeoutseconds") == "295" + assert headers.get("x-uipath-llmgateway-timeoutseconds") == "895" assert headers.get("x-uipath-llmgateway-allowfull4xxresponse") == "false" assert headers.get("x-my-custom") == "async-value"