mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
multiple[patch]: fix deprecation versions (#18349)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user