Skip to content

Commit 66a4446

Browse files
authored
use ChatAnthropic instead of ChatAnthropicVertex (#28)
1 parent 0cc8f9c commit 66a4446

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

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.1.8] - 2026-02-13
6+
7+
### Refactor
8+
- Adjust Anthropic factory method to use ChatAnthropic instead of ChatAnthropicVertex
9+
510
## [1.1.7] - 2026-02-13
611

712
### Refactor
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.1.7"
3+
__version__ = "1.1.8"

packages/uipath_langchain_client/src/uipath_langchain_client/factory.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,16 @@ def get_chat_model(
143143
case "vertexai":
144144
if is_uipath_owned:
145145
if "claude" in model_name:
146-
from uipath_langchain_client.clients.vertexai.chat_models import (
147-
UiPathChatAnthropicVertex,
146+
from uipath_langchain_client.clients.anthropic.chat_models import (
147+
UiPathChatAnthropic,
148148
)
149149

150150
return cast(
151151
UiPathBaseChatModel,
152-
UiPathChatAnthropicVertex(
152+
UiPathChatAnthropic(
153153
model=model_name,
154154
settings=client_settings,
155+
vendor_type=vendor_type,
155156
**model_kwargs,
156157
),
157158
)

0 commit comments

Comments
 (0)