From e98e2b2b81c86c4ccbea3e9be875ef63a61b3c08 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Sun, 30 Jul 2023 23:11:04 -0400 Subject: [PATCH] ChatPromptTemplate: clean up doc-string (#8473) Minor doc-string clean up --------- Co-authored-by: Harrison Chase --- libs/langchain/langchain/prompts/chat.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/libs/langchain/langchain/prompts/chat.py b/libs/langchain/langchain/prompts/chat.py index 2a24a74523..b724d6b7b5 100644 --- a/libs/langchain/langchain/prompts/chat.py +++ b/libs/langchain/langchain/prompts/chat.py @@ -469,7 +469,7 @@ class ChatPromptTemplate(BaseChatPromptTemplate, ABC): Examples: - Instantiation from a list of role strings and templates: + Instantiation from a list of message templates: .. code-block:: python @@ -488,18 +488,6 @@ class ChatPromptTemplate(BaseChatPromptTemplate, ABC): ("human", "Hello, how are you?"), ]) - Instantiation from a list message templates: - - - .. code-block:: python - - template = ChatPromptTemplate.from_messages([ - ("human", "Hello, how are you?"), - ("ai", "I'm doing well, thanks!"), - ("human", "That's good to hear."), - ]) - - Args: messages: sequence of message representations. A message can be represented using the following formats: