Skip to content

Commit c9c6549

Browse files
committed
timeout fixes
1 parent 703a61e commit c9c6549

11 files changed

Lines changed: 1 addition & 36 deletions

File tree

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),

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,11 @@ async def fix_url_and_api_flavor_header_async(request: Request):
5656

5757
self.root_client = OpenAI(
5858
api_key="PLACEHOLDER",
59-
timeout=None, # handled by the UiPath client
6059
max_retries=0, # handled by the UiPath client
6160
http_client=self.uipath_sync_client,
6261
)
6362
self.root_async_client = AsyncOpenAI(
6463
api_key="PLACEHOLDER",
65-
timeout=None, # handled by the UiPath client
6664
max_retries=0, # handled by the UiPath client
6765
http_client=self.uipath_async_client,
6866
)
@@ -111,15 +109,13 @@ async def fix_url_and_api_flavor_header_async(request: Request):
111109
azure_endpoint="PLACEHOLDER",
112110
api_version="PLACEHOLDER",
113111
api_key="PLACEHOLDER",
114-
timeout=None, # handled by the UiPath client
115112
max_retries=0, # handled by the UiPath client
116113
http_client=self.uipath_sync_client,
117114
)
118115
self.root_async_client = AsyncAzureOpenAI(
119116
azure_endpoint="PLACEHOLDER",
120117
api_version="PLACEHOLDER",
121118
api_key="PLACEHOLDER",
122-
timeout=None, # handled by the UiPath client
123119
max_retries=0, # handled by the UiPath client
124120
http_client=self.uipath_async_client,
125121
)

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ class UiPathOpenAIEmbeddings(UiPathBaseLLMClient, OpenAIEmbeddings):
3535
def setup_uipath_client(self) -> Self:
3636
self.client = OpenAI(
3737
api_key="PLACEHOLDER",
38-
timeout=None, # handled by the UiPath client
3938
max_retries=0, # handled by the UiPath client
4039
http_client=self.uipath_sync_client,
4140
).embeddings
4241
self.async_client = AsyncOpenAI(
4342
api_key="PLACEHOLDER",
44-
timeout=None, # handled by the UiPath client
4543
max_retries=0, # handled by the UiPath client
4644
http_client=self.uipath_async_client,
4745
).embeddings
@@ -69,15 +67,13 @@ def setup_uipath_client(self) -> Self:
6967
azure_endpoint="PLACEHOLDER",
7068
api_version="PLACEHOLDER",
7169
api_key="PLACEHOLDER",
72-
timeout=None, # handled by the UiPath client
7370
max_retries=0, # handled by the UiPath client
7471
http_client=self.uipath_sync_client,
7572
).embeddings
7673
self.async_client = AsyncAzureOpenAI(
7774
azure_endpoint="PLACEHOLDER",
7875
api_version="PLACEHOLDER",
7976
api_key="PLACEHOLDER",
80-
timeout=None, # handled by the UiPath client
8177
max_retries=0, # handled by the UiPath client
8278
http_client=self.uipath_async_client,
8379
).embeddings

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def setup_uipath_client(self) -> Self:
3636
access_token="PLACEHOLDER",
3737
base_url=str(self.uipath_sync_client.base_url),
3838
default_headers=self.uipath_sync_client.headers,
39-
timeout=None, # handled by the UiPath client
4039
max_retries=0, # handled by the UiPath client
4140
http_client=self.uipath_sync_client,
4241
)
@@ -46,7 +45,6 @@ def setup_uipath_client(self) -> Self:
4645
access_token="PLACEHOLDER",
4746
base_url=str(self.uipath_async_client.base_url),
4847
default_headers=self.uipath_async_client.headers,
49-
timeout=None, # handled by the UiPath client
5048
max_retries=0, # handled by the UiPath client
5149
http_client=self.uipath_async_client,
5250
)

src/uipath_llm_client/clients/anthropic/client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def __init__(
9797
)
9898
super().__init__(
9999
api_key="PLACEHOLDER",
100-
timeout=None,
101100
max_retries=0,
102101
http_client=httpx_client,
103102
**kwargs,
@@ -148,7 +147,6 @@ def __init__(
148147
)
149148
super().__init__(
150149
api_key="PLACEHOLDER",
151-
timeout=None,
152150
max_retries=0,
153151
http_client=httpx_client,
154152
**kwargs,
@@ -201,7 +199,6 @@ def __init__(
201199
aws_access_key="PLACEHOLDER",
202200
aws_secret_key="PLACEHOLDER",
203201
aws_region="PLACEHOLDER",
204-
timeout=None,
205202
max_retries=0,
206203
http_client=httpx_client,
207204
**kwargs,
@@ -254,7 +251,6 @@ def __init__(
254251
aws_access_key="PLACEHOLDER",
255252
aws_secret_key="PLACEHOLDER",
256253
aws_region="PLACEHOLDER",
257-
timeout=None,
258254
max_retries=0,
259255
http_client=httpx_client,
260256
**kwargs,
@@ -307,7 +303,6 @@ def __init__(
307303
region="PLACEHOLDER",
308304
project_id="PLACEHOLDER",
309305
access_token="PLACEHOLDER",
310-
timeout=None,
311306
max_retries=0,
312307
http_client=httpx_client,
313308
**kwargs,
@@ -360,7 +355,6 @@ def __init__(
360355
region="PLACEHOLDER",
361356
project_id="PLACEHOLDER",
362357
access_token="PLACEHOLDER",
363-
timeout=None,
364358
max_retries=0,
365359
http_client=httpx_client,
366360
**kwargs,
@@ -411,7 +405,6 @@ def __init__(
411405
)
412406
super().__init__(
413407
api_key="PLACEHOLDER",
414-
timeout=None,
415408
max_retries=0,
416409
http_client=httpx_client,
417410
**kwargs,
@@ -462,7 +455,6 @@ def __init__(
462455
)
463456
super().__init__(
464457
api_key="PLACEHOLDER",
465-
timeout=None,
466458
max_retries=0,
467459
http_client=httpx_client,
468460
**kwargs,

src/uipath_llm_client/clients/google/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def __init__(
7474
http_options=HttpOptions(
7575
base_url=str(httpx_client.base_url),
7676
headers=dict(httpx_client.headers),
77-
timeout=None, # handled by the UiPath client
7877
retry_options=None, # handled by the UiPath client
7978
httpx_client=httpx_client,
8079
httpx_async_client=httpx_async_client,

src/uipath_llm_client/clients/openai/client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def __init__(
5050
)
5151
super().__init__(
5252
api_key="PLACEHOLDER",
53-
timeout=None,
5453
max_retries=0,
5554
http_client=httpx_client,
5655
)
@@ -90,7 +89,6 @@ def __init__(
9089
)
9190
super().__init__(
9291
api_key="PLACEHOLDER",
93-
timeout=None,
9492
max_retries=0,
9593
http_client=httpx_client,
9694
)
@@ -132,7 +130,6 @@ def __init__(
132130
azure_endpoint="PLACEHOLDER",
133131
api_version="PLACEHOLDER",
134132
api_key="PLACEHOLDER",
135-
timeout=None,
136133
max_retries=0,
137134
http_client=httpx_client,
138135
)
@@ -174,7 +171,6 @@ def __init__(
174171
azure_endpoint="PLACEHOLDER",
175172
api_version="PLACEHOLDER",
176173
api_key="PLACEHOLDER",
177-
timeout=None,
178174
max_retries=0,
179175
http_client=httpx_client,
180176
)

0 commit comments

Comments
 (0)