From 54eee64fafde496050b6d6f091fe369f997596d1 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Tue, 10 Sep 2024 10:34:31 -0400 Subject: [PATCH] update claude model in examples (#750) --- README.md | 4 ++-- examples/chat_playground/legacy_input/server.py | 2 +- examples/chat_with_persistence/server.py | 2 +- examples/widgets/chat/message_list/server.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0d149128..ec0bba55 100644 --- a/README.md +++ b/README.md @@ -380,7 +380,7 @@ prompt = ChatPromptTemplate.from_messages( ] ) -chain = prompt | ChatAnthropic(model="claude-2") +chain = prompt | ChatAnthropic(model="claude-2.1") class InputChat(BaseModel): @@ -772,7 +772,7 @@ prompt = ChatPromptTemplate.from_messages( ] ) -chain = prompt | ChatAnthropic(model="claude-2") +chain = prompt | ChatAnthropic(model="claude-2.1") class MessageListInput(BaseModel): diff --git a/examples/chat_playground/legacy_input/server.py b/examples/chat_playground/legacy_input/server.py index 0183928b..fee8e874 100644 --- a/examples/chat_playground/legacy_input/server.py +++ b/examples/chat_playground/legacy_input/server.py @@ -28,7 +28,7 @@ ] ) -chain = prompt | ChatAnthropic(model="claude-2") +chain = prompt | ChatAnthropic(model="claude-2.1") class InputChat(BaseModel): diff --git a/examples/chat_with_persistence/server.py b/examples/chat_with_persistence/server.py index b239ec32..59e4f1a8 100755 --- a/examples/chat_with_persistence/server.py +++ b/examples/chat_with_persistence/server.py @@ -76,7 +76,7 @@ def get_chat_history(session_id: str) -> FileChatMessageHistory: ] ) -chain = prompt | ChatAnthropic(model="claude-2") +chain = prompt | ChatAnthropic(model="claude-2.1") class InputChat(BaseModel): diff --git a/examples/widgets/chat/message_list/server.py b/examples/widgets/chat/message_list/server.py index 40fc1045..f9b65266 100755 --- a/examples/widgets/chat/message_list/server.py +++ b/examples/widgets/chat/message_list/server.py @@ -40,7 +40,7 @@ ] ) -chain = prompt | ChatAnthropic(model="claude-2") | StrOutputParser() +chain = prompt | ChatAnthropic(model="claude-2.1") | StrOutputParser() class InputChat(BaseModel):