Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## [1.0.8] - 2026-02-04

### Bug Fix
- Fixed a typing issue of Singleton

## [1.0.7] - 2026-02-04

### Fix
Expand Down
5 changes: 5 additions & 0 deletions packages/uipath_langchain_client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `uipath_langchain_client` will be documented in this file.

## [1.0.9] - 2026-02-04

### Fix
- Fixed typing in core package, updated dependency

## [1.0.8] - 2026-02-04

### Fix
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath_langchain_client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"langchain>=1.2.7",
"uipath-llm-client>=1.0.7",
"uipath-llm-client>=1.0.8",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__title__ = "UiPath LangChain Client"
__description__ = "A Python client for interacting with UiPath's LLM services via LangChain."
__version__ = "1.0.8"
__version__ = "1.0.9"
2 changes: 1 addition & 1 deletion src/uipath_llm_client/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__titile__ = "UiPath LLM Client"
__description__ = "A Python client for interacting with UiPath's LLM services."
__version__ = "1.0.7"
__version__ = "1.0.8"
13 changes: 6 additions & 7 deletions src/uipath_llm_client/settings/utils.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from typing import Any


class SingletonMeta[T](type):
class SingletonMeta(type):
"""Metaclass for creating singleton classes. Used to keep global configs shared between instances."""

_instances: dict[Any, Any] = {}
_instances: dict[type, Any] = {}

def __call__(cls: type[T], *args: Any, **kwargs: Any) -> T:
instances = SingletonMeta._instances
if cls not in instances:
def __call__(cls, *args: Any, **kwargs: Any) -> Any:
if cls not in SingletonMeta._instances:
instance = super().__call__(*args, **kwargs)
instances[cls] = instance
return instances[cls]
SingletonMeta._instances[cls] = instance
return SingletonMeta._instances[cls]