Skip to content

Commit

Permalink
ChatPromptTemplate is not an ABC, it's instantiated directly. (la…
Browse files Browse the repository at this point in the history
…ngchain-ai#9468)

Its own `__add__` method constructs `ChatPromptTemplate` objects
directly, it cannot be abstract.

Found while debugging something else with @nfcampos.
  • Loading branch information
obi1kenobi authored Aug 18, 2023
1 parent 82fb56b commit 82f28ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/prompts/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def format_messages(self, **kwargs: Any) -> List[BaseMessage]:
]


class ChatPromptTemplate(BaseChatPromptTemplate, ABC):
class ChatPromptTemplate(BaseChatPromptTemplate):
"""A prompt template for chat models.
Use to create flexible templated prompts for chat models.
Expand Down

0 comments on commit 82f28ca

Please sign in to comment.