Skip to content

Commit 5390289

Browse files
authored
New default llmgw timeout to 295 (avoid server side problems) (#17)
1 parent 68b7311 commit 5390289

8 files changed

Lines changed: 40 additions & 14 deletions

File tree

.github/workflows/cd-langchain.yml

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish uipath-langchain-client to PyPI
1+
name: cd-langchain
22

33
on:
44
push:
@@ -7,26 +7,42 @@ on:
77
paths:
88
- 'packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py'
99
workflow_run:
10-
workflows: ["Publish uipath-llm-client to PyPI"]
10+
workflows: ["cd"]
1111
types:
1212
- completed
13-
branches:
14-
- main
1513
workflow_dispatch:
1614

1715
jobs:
1816
build:
17+
if: >
18+
github.event_name == 'workflow_dispatch' ||
19+
20+
(
21+
github.event_name == 'push' &&
22+
!contains(
23+
join(github.event.commits.*.modified, ' '),
24+
'src/uipath_llm_client/__version__.py'
25+
)
26+
) ||
27+
28+
(
29+
github.event_name == 'workflow_run' &&
30+
github.event.workflow_run.conclusion == 'success' &&
31+
contains(
32+
join(github.event.workflow_run.head_commit.modified, ' '),
33+
'packages/uipath_langchain_client/src/uipath_langchain_client/__version__.py'
34+
) &&
35+
contains(
36+
join(github.event.workflow_run.head_commit.modified, ' '),
37+
'src/uipath_llm_client/__version__.py'
38+
)
39+
)
1940
name: Build package
2041
runs-on: ubuntu-latest
2142
environment: pypi
2243
permissions:
2344
contents: read
2445
id-token: write
25-
# Only run if triggered by push/dispatch, OR if the upstream workflow succeeded
26-
if: >
27-
github.event_name == 'push' ||
28-
github.event_name == 'workflow_dispatch' ||
29-
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
3046

3147
steps:
3248
- uses: actions/checkout@v6

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish uipath-llm-client to PyPI
1+
name: cd
22

33
on:
44
push:

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.0.12] - 2026-02-05
6+
7+
### Fix
8+
- Added 295 as default llmgateway timeout to avoid problems on the backend side
9+
510
## [1.0.11] - 2026-02-05
611

712
### Feature

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.0.12] - 2026-02-05
6+
7+
### Fix
8+
- Added 295 as default llmgateway timeout to avoid problems on the backend side
9+
510
## [1.0.11] - 2026-02-04
611

712
### Type fix
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.0.11"
3+
__version__ = "1.0.12"

packages/uipath_langchain_client/src/uipath_langchain_client/base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class UiPathBaseLLMClient(BaseModel):
9292

9393
default_headers: Mapping[str, str] | None = Field(
9494
default={
95-
"X-UiPath-LLMGateway-TimeoutSeconds": "300", # server side timeout, default is 10, maximum is 300
95+
"X-UiPath-LLMGateway-TimeoutSeconds": "295", # server side timeout, default is 10, maximum is 300
9696
"X-UiPath-LLMGateway-AllowFull4xxResponse": "true", # allow full 4xx responses (default is false)
9797
},
9898
description="Default request headers to include in requests",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__titile__ = "UiPath LLM Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services."
3-
__version__ = "1.0.11"
3+
__version__ = "1.0.12"

src/uipath_llm_client/httpx_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class UiPathHttpxClient(Client):
9999

100100
_streaming_header: str = "X-UiPath-Streaming-Enabled"
101101
_default_headers: Mapping[str, str] = {
102-
"X-UiPath-LLMGateway-TimeoutSeconds": "300", # server side timeout, default is 10, maximum is 300
102+
"X-UiPath-LLMGateway-TimeoutSeconds": "295", # server side timeout, default is 10, maximum is 300
103103
"X-UiPath-LLMGateway-AllowFull4xxResponse": "true", # allow full 4xx responses (default is false)
104104
}
105105

0 commit comments

Comments
 (0)