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.12.2] - 2026-05-24

### Changed
- Bumped the default Azure OpenAI API version from `2025-03-01-preview` to `2025-04-01-preview` in the OpenAI passthrough handler's `base_api_config`.

## [1.11.3] - 2026-05-21

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ config = UiPathAPIConfig(
client_type="passthrough",
vendor_type="openai",
api_flavor="chat-completions",
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
)
```

Expand All @@ -739,7 +739,7 @@ config = UiPathAPIConfig(
| `client_type` | `"passthrough"` \| `"normalized"` \| `None` | `None` | `"passthrough"` uses vendor-native APIs; `"normalized"` uses UiPath's unified API |
| `vendor_type` | `str \| None` | `None` | LLM vendor identifier: `"openai"`, `"vertexai"`, `"awsbedrock"`, `"anthropic"`, `"azure"` |
| `api_flavor` | `str \| None` | `None` | Vendor-specific API flavor (e.g., `"chat-completions"`, `"responses"`, `"generate-content"`, `"converse"`, `"invoke"`, `"anthropic-claude"`) |
| `api_version` | `str \| None` | `None` | Vendor-specific API version (e.g., `"2025-03-01-preview"`, `"v1beta1"`) |
| `api_version` | `str \| None` | `None` | Vendor-specific API version (e.g., `"2025-04-01-preview"`, `"v1beta1"`) |
| `freeze_base_url` | `bool` | `False` | Prevents httpx from modifying the base URL (required for some vendor SDKs) |

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

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

## [1.12.2] - 2026-05-24

### Changed
- Bumped the default Azure OpenAI API version from `2025-03-01-preview` to `2025-04-01-preview` on `UiPathChatOpenAI`, `UiPathAzureChatOpenAI`, `UiPathOpenAIEmbeddings`, `UiPathAzureOpenAIEmbeddings`, `UiPathChatFireworks`, and `UiPathFireworksEmbeddings`.
- Bumped `uipath-llm-client` floor to `>=1.12.2` to pick up the matching API version default.

## [1.12.1] - 2026-05-22

### Changed
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.15,<2.0.0",
"uipath-llm-client>=1.11.3,<2.0.0",
"uipath-llm-client>=1.12.2,<2.0.0",
]

[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.12.1"
__version__ = "1.12.2"
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class UiPathChatFireworks(UiPathBaseChatModel, ChatFireworks): # type: ignore[o
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type=VendorType.OPENAI,
api_flavor=ApiFlavor.CHAT_COMPLETIONS,
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
freeze_base_url=True,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UiPathFireworksEmbeddings(UiPathBaseEmbeddings, FireworksEmbeddings):
api_type=ApiType.EMBEDDINGS,
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type=VendorType.OPENAI,
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
freeze_base_url=True,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class UiPathChatOpenAI(UiPathBaseChatModel, ChatOpenAI): # type: ignore[overrid
api_type=ApiType.COMPLETIONS,
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type=VendorType.OPENAI,
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
freeze_base_url=False,
)
api_flavor: ApiFlavor | str | None = None
Expand Down Expand Up @@ -85,7 +85,7 @@ class UiPathAzureChatOpenAI(UiPathBaseChatModel, AzureChatOpenAI): # type: igno
api_type=ApiType.COMPLETIONS,
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type=VendorType.OPENAI,
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
freeze_base_url=False,
)
api_flavor: ApiFlavor | str | None = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class UiPathOpenAIEmbeddings(UiPathBaseEmbeddings, OpenAIEmbeddings):
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type=VendorType.OPENAI,
freeze_base_url=True,
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
)

# Override fields to avoid errors when instantiating the class
Expand Down Expand Up @@ -52,7 +52,7 @@ class UiPathAzureOpenAIEmbeddings(UiPathBaseEmbeddings, AzureOpenAIEmbeddings):
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type=VendorType.OPENAI,
freeze_base_url=True,
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
)

# Override fields to avoid errors when instantiating the class
Expand Down
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 @@
__title__ = "UiPath LLM Client"
__description__ = "A Python client for interacting with UiPath's LLM services."
__version__ = "1.11.3"
__version__ = "1.12.2"
2 changes: 1 addition & 1 deletion src/uipath/llm_client/clients/openai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
self.base_api_config = UiPathAPIConfig(
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type=VendorType.OPENAI,
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
freeze_base_url=False,
)

Expand Down
2 changes: 1 addition & 1 deletion src/uipath/llm_client/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UiPathAPIConfig(BaseModel):
vendor_type: The LLM vendor (e.g., VendorType.OPENAI, VendorType.VERTEXAI).
Required when routing_mode is PASSTHROUGH.
api_flavor: Vendor-specific API flavor (e.g., ApiFlavor.CHAT_COMPLETIONS).
api_version: Vendor-specific API version (e.g., "2025-03-01-preview").
api_version: Vendor-specific API version (e.g., "2025-04-01-preview").
freeze_base_url: If True, prevents httpx from modifying the base URL.
Used when the URL must remain exactly as configured.

Expand Down
6 changes: 3 additions & 3 deletions tests/core/clients/openai/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_base_api_config_defaults(self, handler):
cfg = handler.base_api_config
assert cfg.routing_mode == RoutingMode.PASSTHROUGH
assert cfg.vendor_type == VendorType.OPENAI
assert cfg.api_version == "2025-03-01-preview"
assert cfg.api_version == "2025-04-01-preview"
assert cfg.freeze_base_url is False
assert cfg.api_type is None
assert cfg.api_flavor is None
Expand Down Expand Up @@ -101,7 +101,7 @@ def test_preserves_base_config_fields(self, handler):
api_config: UiPathAPIConfig = call_args.kwargs["api_config"]
assert api_config.routing_mode == RoutingMode.PASSTHROUGH
assert api_config.vendor_type == VendorType.OPENAI
assert api_config.api_version == "2025-03-01-preview"
assert api_config.api_version == "2025-04-01-preview"

def test_rewrites_url(self, handler):
request = _make_request("/v1/chat/completions")
Expand All @@ -120,7 +120,7 @@ def test_injects_api_version_header(self, handler):
request = _make_request("/v1/chat/completions")
handler.fix_url_and_headers(request)

assert request.headers.get("X-UiPath-LlmGateway-ApiVersion") == "2025-03-01-preview"
assert request.headers.get("X-UiPath-LlmGateway-ApiVersion") == "2025-04-01-preview"


# ============================================================================
Expand Down
4 changes: 2 additions & 2 deletions tests/core/features/test_api_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def test_api_flavor_and_version(self):
routing_mode=RoutingMode.PASSTHROUGH,
vendor_type="openai",
api_flavor="chat-completions",
api_version="2025-03-01-preview",
api_version="2025-04-01-preview",
)
assert config.api_flavor == "chat-completions"
assert config.api_version == "2025-03-01-preview"
assert config.api_version == "2025-04-01-preview"


class TestEnumConstants:
Expand Down
Loading