Skip to content

Commit c66b10e

Browse files
cosminachoclaude
andcommitted
Fix ImportError when litellm optional dependency is not installed
UiPathLiteLLM was imported at the top level of __init__.py, causing an ImportError for users who don't have the litellm extra installed. Removed the eager import so the core package works without litellm. Bumps core version to 1.8.1 to sync with langchain 1.8.1. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 89380e9 commit c66b10e

4 files changed

Lines changed: 7 additions & 5 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.8.1] - 2026-04-13
6+
7+
### Fixed
8+
- Removed top-level import of `UiPathLiteLLM` from `__init__.py` to avoid `ImportError` when the optional `litellm` dependency is not installed
9+
510
## [1.8.0] - 2026-04-08
611

712
### Added

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.15",
9-
"uipath-llm-client>=1.8.0",
9+
"uipath-llm-client>=1.8.1",
1010
]
1111

1212
[project.optional-dependencies]

src/uipath/llm_client/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"""
2727

2828
from uipath.llm_client.__version__ import __version__
29-
from uipath.llm_client.clients.litellm import UiPathLiteLLM
3029
from uipath.llm_client.clients.normalized import UiPathNormalizedClient
3130
from uipath.llm_client.httpx_client import (
3231
UiPathHttpxAsyncClient,
@@ -62,8 +61,6 @@
6261
"LLMGatewaySettings",
6362
# Normalized client
6463
"UiPathNormalizedClient",
65-
# LiteLLM client
66-
"UiPathLiteLLM",
6764
# HTTPX clients
6865
"UiPathHttpxClient",
6966
"UiPathHttpxAsyncClient",
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.8.0"
3+
__version__ = "1.8.1"

0 commit comments

Comments
 (0)