Skip to content

Commit 081b87e

Browse files
authored
Factory Function Fix (#44)
1 parent cc959ee commit 081b87e

6 files changed

Lines changed: 16 additions & 4 deletions

File tree

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.5.3] - 2026-03-18
6+
7+
### Fix
8+
- Factory function fix
9+
510
## [1.5.2] - 2026-03-18
611

712
### Fix

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.3] - 2026-03-18
6+
7+
### Fix
8+
- Factory function fix
9+
510
## [1.5.2] - 2026-03-18
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.12",
9-
"uipath-llm-client>=1.5.2",
9+
"uipath-llm-client>=1.5.3",
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.2"
3+
__version__ = "1.5.3"

packages/uipath_langchain_client/src/uipath_langchain_client/factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ def get_chat_model(
120120
byo_connection_id=byo_connection_id,
121121
vendor_type=vendor_type,
122122
)
123+
model_family = model_info.get("modelFamily", None)
124+
if model_family is not None:
125+
model_family = model_family.lower()
123126
is_uipath_owned = model_info.get("modelSubscriptionType") == "UiPathOwned"
124-
model_family = model_info.get("modelFamily", "").lower()
125127
if not is_uipath_owned:
126128
client_settings.validate_byo_model(model_info)
127129

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.2"
3+
__version__ = "1.5.3"

0 commit comments

Comments
 (0)