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
Copy file name to clipboardExpand all lines: docs/chat_models.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# UiPath chat models
2
2
3
-
UiPath provides two chat models `UiPathAzureChatOpenAI` and `UiPathNormalizedChatModel`. These are compatible with langgraph as drop in replacements. You do not need to add tokens from OpenAI or Anthropic, usage of these chat models will consume `AI Units` on your account.
3
+
UiPath provides two chat models `UiPathAzureChatOpenAI` and `UiPathChat`. These are compatible with langgraph as drop in replacements. You do not need to add tokens from OpenAI or Anthropic, usage of these chat models will consume `AI Units` on your account.
4
4
5
5
## UiPathAzureChatOpenAI
6
6
@@ -15,8 +15,8 @@ from langchain_openai import ChatOpenAI
15
15
llm = ChatOpenAI(
16
16
model="gpt-4o",
17
17
temperature=0,
18
-
max_tokens=None,
19
-
timeout=None,
18
+
max_tokens=4000,
19
+
timeout=30,
20
20
max_retries=2,
21
21
# api_key="...", # if you prefer to pass api key in directly instaed of using env vars
22
22
# base_url="...",
@@ -32,10 +32,10 @@ You can simply change `ChatOpenAi` with `UiPathAzureChatOpenAI`, you don't have
32
32
from uipath_langchain.chat.models import UiPathAzureChatOpenAI
33
33
34
34
llm = UiPathAzureChatOpenAI(
35
-
model="gpt-4o",
35
+
model="gpt-4o-2024-08-06",
36
36
temperature=0,
37
-
max_tokens=None,
38
-
timeout=None,
37
+
max_tokens=4000,
38
+
timeout=30,
39
39
max_retries=2,
40
40
# other params...
41
41
)
@@ -45,9 +45,9 @@ Currently the following models can be used with `UiPathAzureChatOpenAI` (this li
0 commit comments