Skip to content

Commit 3f2f154

Browse files
cosminachoclaude
andcommitted
fix: use availableOperationCodes for BYOM validation, bump to 1.5.9
- Core: use availableOperationCodes field in LLMGateway BYOM validation - LangChain: remove fix_host_header event hooks from UiPathChatOpenAI - Bump both packages to 1.5.9 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9627a49 commit 3f2f154

6 files changed

Lines changed: 14 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

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

5+
## [1.5.9] - 2026-03-26
6+
7+
### Fix
8+
- Use `availableOperationCodes` field (instead of `operationCodes`) when validating BYOM operation codes
9+
510
## [1.5.8] - 2026-03-26
611

712
### Fix
8-
- Set correct host for BYOM requests which resulted in 403 from cloudflare
13+
- Pass `base_url` to `OpenAI` and `AsyncOpenAI` constructors in `UiPathOpenAI` and `UiPathAsyncOpenAI` to ensure the correct endpoint is forwarded to the underlying SDK clients
914

1015
## [1.5.7] - 2026-03-23
1116

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.5.9] - 2026-03-26
6+
7+
### Fix
8+
- Remove `fix_host_header` event hooks from `UiPathChatOpenAI`; host header management is handled by the underlying httpx client
9+
510
## [1.5.8] - 2026-03-26
611

712
### Fix

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.13",
9-
"uipath-llm-client>=1.5.8",
9+
"uipath-llm-client>=1.5.9",
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.5.8"
3+
__version__ = "1.5.9"

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ async def fix_url_and_api_flavor_header_async(request: Request):
6060
self.uipath_sync_client.event_hooks["request"].append(fix_url_and_api_flavor_header)
6161
self.uipath_async_client.event_hooks["request"].append(fix_url_and_api_flavor_header_async)
6262

63-
correct_host = URL(base_url).host
64-
65-
def fix_host_header(request: Request) -> None:
66-
request.headers["host"] = correct_host
67-
68-
async def fix_host_header_async(request: Request) -> None:
69-
request.headers["host"] = correct_host
70-
71-
self.uipath_sync_client.event_hooks["request"].append(fix_host_header)
72-
self.uipath_async_client.event_hooks["request"].append(fix_host_header_async)
73-
7463
self.root_client = OpenAI(
7564
api_key="PLACEHOLDER",
7665
max_retries=0, # handled by the UiPath client
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "UiPath LLM Client"
22
__description__ = "A Python client for interacting with UiPath's LLM services."
3-
__version__ = "1.5.8"
3+
__version__ = "1.5.9"

0 commit comments

Comments
 (0)