Skip to content

Commit

Permalink
update claude model in examples (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyurtsev authored Sep 10, 2024
1 parent 72c200f commit 54eee64
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ prompt = ChatPromptTemplate.from_messages(
]
)

chain = prompt | ChatAnthropic(model="claude-2")
chain = prompt | ChatAnthropic(model="claude-2.1")


class InputChat(BaseModel):
Expand Down Expand Up @@ -772,7 +772,7 @@ prompt = ChatPromptTemplate.from_messages(
]
)

chain = prompt | ChatAnthropic(model="claude-2")
chain = prompt | ChatAnthropic(model="claude-2.1")


class MessageListInput(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion examples/chat_playground/legacy_input/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
]
)

chain = prompt | ChatAnthropic(model="claude-2")
chain = prompt | ChatAnthropic(model="claude-2.1")


class InputChat(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion examples/chat_with_persistence/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion examples/widgets/chat/message_list/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
]
)

chain = prompt | ChatAnthropic(model="claude-2") | StrOutputParser()
chain = prompt | ChatAnthropic(model="claude-2.1") | StrOutputParser()


class InputChat(BaseModel):
Expand Down

0 comments on commit 54eee64

Please sign in to comment.