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:
Predrag Gruevski 2023-08-18 14:37:10 -04:00 committed by GitHub
parent 82fb56b79c
commit 82f28ca9ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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