ChatPromptTemplate: clean up doc-string (#8473)

Minor doc-string clean up

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
pull/8500/head
Eugene Yurtsev 1 year ago committed by GitHub
parent 529cb2e30c
commit e98e2b2b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save