Skip to content

Commit 91d8fa4

Browse files
committed
fixes
1 parent c2a793a commit 91d8fa4

4 files changed

Lines changed: 12 additions & 13 deletions

File tree

src/uipath/llm_client/clients/anthropic/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def __init__(
8989
http_client=build_httpx_client(
9090
model_name=model_name,
9191
byo_connection_id=byo_connection_id,
92-
api_config=_build_api_config(),
9392
client_settings=client_settings,
93+
api_config=_build_api_config(),
9494
timeout=timeout,
9595
max_retries=max_retries,
9696
default_headers=default_headers,
@@ -136,8 +136,8 @@ def __init__(
136136
http_client=build_httpx_async_client(
137137
model_name=model_name,
138138
byo_connection_id=byo_connection_id,
139-
api_config=_build_api_config(),
140139
client_settings=client_settings,
140+
api_config=_build_api_config(),
141141
timeout=timeout,
142142
max_retries=max_retries,
143143
default_headers=default_headers,
@@ -185,8 +185,8 @@ def __init__(
185185
http_client=build_httpx_client(
186186
model_name=model_name,
187187
byo_connection_id=byo_connection_id,
188-
api_config=_build_api_config(vendor_type=VendorType.AWSBEDROCK),
189188
client_settings=client_settings,
189+
api_config=_build_api_config(vendor_type=VendorType.AWSBEDROCK),
190190
timeout=timeout,
191191
max_retries=max_retries,
192192
default_headers=default_headers,
@@ -234,8 +234,8 @@ def __init__(
234234
http_client=build_httpx_async_client(
235235
model_name=model_name,
236236
byo_connection_id=byo_connection_id,
237-
api_config=_build_api_config(vendor_type=VendorType.AWSBEDROCK),
238237
client_settings=client_settings,
238+
api_config=_build_api_config(vendor_type=VendorType.AWSBEDROCK),
239239
timeout=timeout,
240240
max_retries=max_retries,
241241
default_headers=default_headers,
@@ -283,8 +283,8 @@ def __init__(
283283
http_client=build_httpx_client(
284284
model_name=model_name,
285285
byo_connection_id=byo_connection_id,
286-
api_config=_build_api_config(vendor_type=VendorType.VERTEXAI),
287286
client_settings=client_settings,
287+
api_config=_build_api_config(vendor_type=VendorType.VERTEXAI),
288288
timeout=timeout,
289289
max_retries=max_retries,
290290
default_headers=default_headers,
@@ -332,8 +332,8 @@ def __init__(
332332
http_client=build_httpx_async_client(
333333
model_name=model_name,
334334
byo_connection_id=byo_connection_id,
335-
api_config=_build_api_config(vendor_type=VendorType.VERTEXAI),
336335
client_settings=client_settings,
336+
api_config=_build_api_config(vendor_type=VendorType.VERTEXAI),
337337
timeout=timeout,
338338
max_retries=max_retries,
339339
default_headers=default_headers,
@@ -379,8 +379,8 @@ def __init__(
379379
http_client=build_httpx_client(
380380
model_name=model_name,
381381
byo_connection_id=byo_connection_id,
382-
api_config=_build_api_config(vendor_type=VendorType.AZURE),
383382
client_settings=client_settings,
383+
api_config=_build_api_config(vendor_type=VendorType.AZURE),
384384
timeout=timeout,
385385
max_retries=max_retries,
386386
default_headers=default_headers,
@@ -426,8 +426,8 @@ def __init__(
426426
http_client=build_httpx_async_client(
427427
model_name=model_name,
428428
byo_connection_id=byo_connection_id,
429-
api_config=_build_api_config(vendor_type=VendorType.AZURE),
430429
client_settings=client_settings,
430+
api_config=_build_api_config(vendor_type=VendorType.AZURE),
431431
timeout=timeout,
432432
max_retries=max_retries,
433433
default_headers=default_headers,

src/uipath/llm_client/clients/google/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def __init__(
6060
httpx_client = build_httpx_client(
6161
model_name=model_name,
6262
byo_connection_id=byo_connection_id,
63-
api_config=api_config,
6463
client_settings=client_settings,
64+
api_config=api_config,
6565
timeout=timeout,
6666
max_retries=max_retries,
6767
default_headers=default_headers,
@@ -72,8 +72,8 @@ def __init__(
7272
httpx_async_client = build_httpx_async_client(
7373
model_name=model_name,
7474
byo_connection_id=byo_connection_id,
75-
api_config=api_config,
7675
client_settings=client_settings,
76+
api_config=api_config,
7777
timeout=timeout,
7878
max_retries=max_retries,
7979
default_headers=default_headers,

src/uipath/llm_client/clients/openai/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
from uipath.llm_client.clients.openai.utils import OpenAIRequestHandler
55
from uipath.llm_client.clients.utils import build_httpx_async_client, build_httpx_client
6-
from uipath.llm_client.settings import get_default_client_settings
7-
from uipath.llm_client.settings.base import UiPathBaseSettings
6+
from uipath.llm_client.settings import UiPathBaseSettings, get_default_client_settings
87
from uipath.llm_client.utils.retry import RetryConfig
98

109
try:

src/uipath/llm_client/clients/openai/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from httpx import URL, Request
44

5-
from uipath.llm_client.httpx_client import build_routing_headers
65
from uipath.llm_client.settings.base import UiPathAPIConfig, UiPathBaseSettings
76
from uipath.llm_client.settings.constants import ApiFlavor, ApiType, RoutingMode, VendorType
7+
from uipath.llm_client.utils.headers import build_routing_headers
88

99
_logger = logging.getLogger(__name__)
1010

0 commit comments

Comments
 (0)