Skip to content

Commit 294e609

Browse files
authored
fix typing of request timeout (#31)
1 parent 76850e5 commit 294e609

20 files changed

Lines changed: 55 additions & 78 deletions

File tree

.github/workflows/cd-langchain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
- name: Wait for package indexing
5151
if: github.event_name == 'workflow_run'
52-
run: sleep 60
52+
run: sleep 120
5353

5454
- name: Setup uv
5555
uses: astral-sh/setup-uv@v7

CHANGELOG.md

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

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

5+
## [1.2.1] - 2026-02-18
6+
7+
### Fix
8+
- TImeout fixes, change typing from int to float
9+
- remove timeout=None from all clients -> caused overriding the default timeout set up on the UiPathHttpxClient
10+
511
## [1.2.0] - 2026-02-18
612

713
### Stable release

packages/uipath_langchain_client/CHANGELOG.md

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

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

5+
## [1.2.1] - 2026-02-18
6+
7+
### Fix
8+
- TImeout fixes, change typing from int to float
9+
- remove timeout=None from all clients -> caused overriding the default timeout set up on the UiPathHttpxClient
10+
511
## [1.2.0] - 2026-02-18
612

713
### Stable release

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.7",
9-
"uipath-llm-client>=1.2.0",
9+
"uipath-llm-client>=1.2.1",
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.2.0"
3+
__version__ = "1.2.1"

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
@@ -99,7 +99,7 @@ class UiPathBaseLLMClient(BaseModel, ABC):
9999
},
100100
description="Default request headers to include in requests",
101101
)
102-
request_timeout: int | None = Field(
102+
request_timeout: float | None = Field(
103103
alias="timeout",
104104
validation_alias=AliasChoices("timeout", "request_timeout", "default_request_timeout"),
105105
default=None,

packages/uipath_langchain_client/src/uipath_langchain_client/clients/anthropic/chat_models.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def _anthropic_client(
6666
base_url=str(self.uipath_sync_client.base_url),
6767
default_headers=dict(self.uipath_sync_client.headers),
6868
max_retries=0, # handled by the UiPathBaseLLMClient
69-
timeout=None, # handled by the UiPathBaseLLMClient
7069
http_client=self.uipath_sync_client,
7170
)
7271
case "vertexai":
@@ -76,7 +75,6 @@ def _anthropic_client(
7675
access_token="PLACEHOLDER",
7776
base_url=str(self.uipath_sync_client.base_url),
7877
default_headers=dict(self.uipath_sync_client.headers),
79-
timeout=None, # handled by the UiPathBaseLLMClient
8078
max_retries=0, # handled by the UiPathBaseLLMClient
8179
http_client=self.uipath_sync_client,
8280
)
@@ -87,7 +85,6 @@ def _anthropic_client(
8785
aws_region="PLACEHOLDER",
8886
base_url=str(self.uipath_sync_client.base_url),
8987
default_headers=dict(self.uipath_sync_client.headers),
90-
timeout=None, # handled by the UiPathBaseLLMClient
9188
max_retries=0, # handled by the UiPathBaseLLMClient
9289
http_client=self.uipath_sync_client,
9390
)
@@ -96,7 +93,6 @@ def _anthropic_client(
9693
api_key="PLACEHOLDER",
9794
base_url=str(self.uipath_sync_client.base_url),
9895
default_headers=dict(self.uipath_sync_client.headers),
99-
timeout=None, # handled by the UiPathBaseLLMClient
10096
max_retries=0, # handled by the UiPathBaseLLMClient
10197
http_client=self.uipath_sync_client,
10298
)
@@ -112,7 +108,6 @@ def _async_anthropic_client(
112108
base_url=str(self.uipath_async_client.base_url),
113109
default_headers=dict(self.uipath_async_client.headers),
114110
max_retries=0, # handled by the UiPathBaseLLMClient
115-
timeout=None, # handled by the UiPathBaseLLMClient
116111
http_client=self.uipath_async_client,
117112
)
118113
case "vertexai":
@@ -122,7 +117,6 @@ def _async_anthropic_client(
122117
access_token="PLACEHOLDER",
123118
base_url=str(self.uipath_async_client.base_url),
124119
default_headers=dict(self.uipath_async_client.headers),
125-
timeout=None, # handled by the UiPathBaseLLMClient
126120
max_retries=0, # handled by the UiPathBaseLLMClient
127121
http_client=self.uipath_async_client,
128122
)
@@ -133,7 +127,6 @@ def _async_anthropic_client(
133127
aws_region="PLACEHOLDER",
134128
base_url=str(self.uipath_async_client.base_url),
135129
default_headers=dict(self.uipath_async_client.headers),
136-
timeout=None, # handled by the UiPathBaseLLMClient
137130
max_retries=0, # handled by the UiPathBaseLLMClient
138131
http_client=self.uipath_async_client,
139132
)
@@ -142,7 +135,6 @@ def _async_anthropic_client(
142135
api_key="PLACEHOLDER",
143136
base_url=str(self.uipath_async_client.base_url),
144137
default_headers=dict(self.uipath_async_client.headers),
145-
timeout=None, # handled by the UiPathBaseLLMClient
146138
max_retries=0, # handled by the UiPathBaseLLMClient
147139
http_client=self.uipath_async_client,
148140
)

packages/uipath_langchain_client/src/uipath_langchain_client/clients/fireworks/embeddings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ class UiPathFireworksEmbeddings(UiPathBaseLLMClient, FireworksEmbeddings):
2929
def setup_uipath_client(self) -> Self:
3030
self.client = OpenAI(
3131
api_key="PLACEHOLDER",
32-
timeout=None, # handled by the UiPath client
3332
max_retries=0, # handled by the UiPath client
3433
http_client=self.uipath_sync_client,
3534
)
3635
self.async_client = AsyncOpenAI(
3736
api_key="PLACEHOLDER",
38-
timeout=None, # handled by the UiPath client
3937
max_retries=0, # handled by the UiPath client
4038
http_client=self.uipath_async_client,
4139
)

packages/uipath_langchain_client/src/uipath_langchain_client/clients/google/chat_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ async def fix_url_for_streaming_async(request: Request):
5151
http_options=HttpOptions(
5252
base_url=str(self.uipath_sync_client.base_url),
5353
headers=dict(self.uipath_sync_client.headers),
54-
timeout=None, # handled by the UiPath client
5554
retry_options=None, # handled by the UiPath client
5655
httpx_client=self.uipath_sync_client,
5756
httpx_async_client=self.uipath_async_client,

packages/uipath_langchain_client/src/uipath_langchain_client/clients/google/embeddings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def setup_uipath_client(self) -> Self:
3434
vertexai=True,
3535
api_key="PLACEHOLDER",
3636
http_options=HttpOptions(
37-
timeout=None, # handled by the UiPath client
3837
retry_options=None, # handled by the UiPath client
3938
base_url=str(self.uipath_sync_client.base_url),
4039
headers=dict(self.uipath_sync_client.headers),

0 commit comments

Comments
 (0)