You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: promote provider-specific chat models in docs and new template
Replace UiPathChat references with UiPathChatAnthropicBedrock,
UiPathChatBedrockConverse, UiPathAzureChatOpenAI, and UiPathChatVertex.
Drop hardcoded model lists in favour of `uipath list-models`. Update the
`uipath new` template to use UiPathChatAnthropicBedrock by default.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
UiPath provides two chat models `UiPathAzureChatOpenAI` and `UiPathChat`. These are compatible with LangGraph as dropin replacements. You do not need to add tokens from OpenAI or Anthropic, usage of these chat models will consume `Agent Units` on your account.
3
+
UiPath provides chat model classes compatible with LangChain and LangGraph as drop-in replacements. You do not need provider API keys — usage consumes Agent Units on your account.
4
4
5
-
## UiPathAzureChatOpenAI
5
+
To see the models available for your account, run:
6
6
7
-
`UiPathAzureChatOpenAI` can be used as a drop in replacement for `ChatOpenAI` or `AzureChatOpenAI`.
7
+
```bash
8
+
uipath list-models
9
+
```
10
+
11
+
/// warning
12
+
`UiPathChat` and `UiPathAzureChatOpenAI` are deprecated and will be phased out in a future release. `UiPathAzureChatOpenAI` has been renamed to `UiPathChatOpenAI` (same class, new name). Migrate existing code to one of the provider-specific classes below.
13
+
///
14
+
15
+
## UiPathChatOpenAI
8
16
9
-
### Example usage
17
+
Drop-in replacement for `ChatOpenAI` or `AzureChatOpenAI`. This is the new name for `UiPathAzureChatOpenAI`.
10
18
11
-
Here is a code that is using `ChatOpenAI`
19
+
Original code using `ChatOpenAI`:
12
20
13
21
```python
14
22
from langchain_openai import ChatOpenAI
@@ -26,13 +34,13 @@ llm = ChatOpenAI(
26
34
)
27
35
```
28
36
29
-
You can simply change `ChatOpenAi` with `UiPathAzureChatOpenAI`, you don't have to provide an OpenAI token.
37
+
Swap `ChatOpenAI` for `UiPathChatOpenAI` — no OpenAI token needed:
30
38
31
39
```python
32
-
from uipath_langchain.chat.modelsimportUiPathAzureChatOpenAI
40
+
from uipath_langchain.chat importUiPathChatOpenAI
33
41
34
-
llm =UiPathAzureChatOpenAI(
35
-
model="gpt-4.1-mini-2025-04-14",
42
+
llm =UiPathChatOpenAI(
43
+
model="<model>",
36
44
temperature=0,
37
45
max_tokens=4000,
38
46
timeout=30,
@@ -41,17 +49,11 @@ llm = UiPathAzureChatOpenAI(
41
49
)
42
50
```
43
51
44
-
Currently, the following models can be used with `UiPathAzureChatOpenAI` (this list can be updated in the future):
from uipath_langchain.chat import UiPathChatBedrockConverse
107
+
108
+
llm = UiPathChatBedrockConverse(
109
+
model="<model>",
110
+
temperature=0,
111
+
max_tokens=1024,
112
+
# other params...
113
+
)
114
+
```
115
+
116
+
## UiPathChatVertex
117
+
118
+
Drop-in replacement for `ChatGoogleGenerativeAI` or `ChatVertexAI`.
119
+
120
+
Original code using `ChatGoogleGenerativeAI`:
90
121
91
-
Example: `[Enforced Region] No model configuration found for product uipath-python-sdk in EU using model anthropic.claude-3-opus-20240229-v1:0`.
122
+
```python
123
+
from langchain_google_genai import ChatGoogleGenerativeAI
92
124
125
+
llm = ChatGoogleGenerativeAI(
126
+
model="gemini-2.0-flash-001",
127
+
temperature=0,
128
+
max_tokens=1024,
129
+
# other params...
130
+
)
131
+
```
132
+
133
+
Swap for `UiPathChatVertex`:
134
+
135
+
```python
136
+
from uipath_langchain.chat import UiPathChatVertex
137
+
138
+
llm = UiPathChatVertex(
139
+
model="<model>",
140
+
temperature=0,
141
+
max_tokens=1024,
142
+
# other params...
143
+
)
144
+
```
145
+
146
+
/// warning
147
+
Some models may not be available in all regions due to data residency restrictions. Use `uipath list-models` to see which models are available in your region.
0 commit comments