multiple[patch]: fix deprecation versions (#18349)

This commit is contained in:
Erick Friis
2024-02-29 16:58:33 -08:00
committed by GitHub
parent 11cb42c2c1
commit eefb49680f
7 changed files with 19 additions and 14 deletions

View File

@@ -672,7 +672,7 @@ class ChatPromptTemplate(BaseChatPromptTemplate):
return cls.from_messages([message])
@classmethod
@deprecated("0.0.260", alternative="from_messages classmethod", pending=True)
@deprecated("0.0.1", alternative="from_messages classmethod", pending=True)
def from_role_strings(
cls, string_messages: List[Tuple[str, str]]
) -> ChatPromptTemplate:
@@ -692,7 +692,7 @@ class ChatPromptTemplate(BaseChatPromptTemplate):
)
@classmethod
@deprecated("0.0.260", alternative="from_messages classmethod", pending=True)
@deprecated("0.0.1", alternative="from_messages classmethod", pending=True)
def from_strings(
cls, string_messages: List[Tuple[Type[BaseMessagePromptTemplate], str]]
) -> ChatPromptTemplate: