ChatPromptTemplate: clean up doc-string (#8473)

Minor doc-string clean up

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
Eugene Yurtsev 2023-07-30 23:11:04 -04:00 committed by GitHub
parent 529cb2e30c
commit e98e2b2b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: