Skip to content

Commit d132c3b

Browse files
fix: update default api_version for openai (#88)
1 parent 5bca221 commit d132c3b

14 files changed

Lines changed: 29 additions & 18 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.12.2] - 2026-05-24
6+
7+
### Changed
8+
- 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`.
9+
510
## [1.11.3] - 2026-05-21
611

712
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ config = UiPathAPIConfig(
729729
client_type="passthrough",
730730
vendor_type="openai",
731731
api_flavor="chat-completions",
732-
api_version="2025-03-01-preview",
732+
api_version="2025-04-01-preview",
733733
)
734734
```
735735

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

745745
## Advanced Configuration

packages/uipath_langchain_client/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

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

5+
## [1.12.2] - 2026-05-24
6+
7+
### Changed
8+
- 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`.
9+
- Bumped `uipath-llm-client` floor to `>=1.12.2` to pick up the matching API version default.
10+
511
## [1.12.1] - 2026-05-22
612

713
### Changed

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,<2.0.0",
9-
"uipath-llm-client>=1.11.3,<2.0.0",
9+
"uipath-llm-client>=1.12.2,<2.0.0",
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.12.1"
3+
__version__ = "1.12.2"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class UiPathChatFireworks(UiPathBaseChatModel, ChatFireworks): # type: ignore[o
2727
routing_mode=RoutingMode.PASSTHROUGH,
2828
vendor_type=VendorType.OPENAI,
2929
api_flavor=ApiFlavor.CHAT_COMPLETIONS,
30-
api_version="2025-03-01-preview",
30+
api_version="2025-04-01-preview",
3131
freeze_base_url=True,
3232
)
3333

packages/uipath_langchain_client/src/uipath_langchain_client/clients/fireworks/embeddings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class UiPathFireworksEmbeddings(UiPathBaseEmbeddings, FireworksEmbeddings):
2525
api_type=ApiType.EMBEDDINGS,
2626
routing_mode=RoutingMode.PASSTHROUGH,
2727
vendor_type=VendorType.OPENAI,
28-
api_version="2025-03-01-preview",
28+
api_version="2025-04-01-preview",
2929
freeze_base_url=True,
3030
)
3131

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UiPathChatOpenAI(UiPathBaseChatModel, ChatOpenAI): # type: ignore[overrid
2929
api_type=ApiType.COMPLETIONS,
3030
routing_mode=RoutingMode.PASSTHROUGH,
3131
vendor_type=VendorType.OPENAI,
32-
api_version="2025-03-01-preview",
32+
api_version="2025-04-01-preview",
3333
freeze_base_url=False,
3434
)
3535
api_flavor: ApiFlavor | str | None = None
@@ -85,7 +85,7 @@ class UiPathAzureChatOpenAI(UiPathBaseChatModel, AzureChatOpenAI): # type: igno
8585
api_type=ApiType.COMPLETIONS,
8686
routing_mode=RoutingMode.PASSTHROUGH,
8787
vendor_type=VendorType.OPENAI,
88-
api_version="2025-03-01-preview",
88+
api_version="2025-04-01-preview",
8989
freeze_base_url=False,
9090
)
9191
api_flavor: ApiFlavor | str | None = None

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class UiPathOpenAIEmbeddings(UiPathBaseEmbeddings, OpenAIEmbeddings):
2222
routing_mode=RoutingMode.PASSTHROUGH,
2323
vendor_type=VendorType.OPENAI,
2424
freeze_base_url=True,
25-
api_version="2025-03-01-preview",
25+
api_version="2025-04-01-preview",
2626
)
2727

2828
# Override fields to avoid errors when instantiating the class
@@ -52,7 +52,7 @@ class UiPathAzureOpenAIEmbeddings(UiPathBaseEmbeddings, AzureOpenAIEmbeddings):
5252
routing_mode=RoutingMode.PASSTHROUGH,
5353
vendor_type=VendorType.OPENAI,
5454
freeze_base_url=True,
55-
api_version="2025-03-01-preview",
55+
api_version="2025-04-01-preview",
5656
)
5757

5858
# Override fields to avoid errors when instantiating the class
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.11.3"
3+
__version__ = "1.12.2"

0 commit comments

Comments
 (0)