mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-10 11:55:11 +03:00
ChatPromptTemplate is not an ABC, it's instantiated directly. (#9468)
Its own `__add__` method constructs `ChatPromptTemplate` objects directly, it cannot be abstract. Found while debugging something else with @nfcampos.
This commit is contained in:
1 parent
82fb56b79c
commit
82f28ca9ef
1 file changed
+1
-1
@@ -337,7 +337,7 @@ MessageLikeRepresentation = Union[
|
||||
]
|
||||
|
||||
|
||||
class ChatPromptTemplate(BaseChatPromptTemplate, ABC):
|
||||
class ChatPromptTemplate(BaseChatPromptTemplate):
|
||||
"""A prompt template for chat models.
|
||||
|
||||
Use to create flexible templated prompts for chat models.
|
||||
|
||||
Reference in new issue
Block a user