Skip to content

Commit

Permalink
ChatPromptTemplate: clean up doc-string (#8473)
Browse files Browse the repository at this point in the history
Minor doc-string clean up

---------

Co-authored-by: Harrison Chase <[email protected]>
  • Loading branch information
eyurtsev and hwchase17 authored Jul 31, 2023
1 parent 529cb2e commit e98e2b2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions libs/langchain/langchain/prompts/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def from_messages(
Examples:
Instantiation from a list of role strings and templates:
Instantiation from a list of message templates:
.. code-block:: python
Expand All @@ -488,18 +488,6 @@ def from_messages(
("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:
Expand Down

0 comments on commit e98e2b2

Please sign in to comment.