multiple: push deprecation removals to 1.0 (#28236)

This commit is contained in:
Erick Friis 2024-11-20 19:56:29 -08:00 committed by GitHub
parent 4f76246cf2
commit d1108607f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View File

@ -112,7 +112,7 @@ from langchain_core._api.deprecation import deprecated
@deprecated( @deprecated(
since="0.0.<next community version>", since="0.0.<next community version>",
removal="0.2.0", removal="1.0.0",
alternative_import="langchain_parrot_link.ChatParrotLink" alternative_import="langchain_parrot_link.ChatParrotLink"
) )
class ChatParrotLink(BaseChatModel): class ChatParrotLink(BaseChatModel):

View File

@ -45,7 +45,7 @@ def is_endpoint_live(url: str, headers: Optional[dict], payload: Any) -> bool:
@deprecated( @deprecated(
since="0.0.37", since="0.0.37",
removal="0.2.0", removal="1.0.0",
message=( message=(
"Directly instantiating a NeMoEmbeddings from langchain-community is " "Directly instantiating a NeMoEmbeddings from langchain-community is "
"deprecated. Please use langchain-nvidia-ai-endpoints NVIDIAEmbeddings " "deprecated. Please use langchain-nvidia-ai-endpoints NVIDIAEmbeddings "

View File

@ -1329,7 +1329,7 @@ def _make_message_chunk_from_anthropic_event(
return message_chunk return message_chunk
@deprecated(since="0.1.0", removal="0.3.0", alternative="ChatAnthropic") @deprecated(since="0.1.0", removal="1.0.0", alternative="ChatAnthropic")
class ChatAnthropicMessages(ChatAnthropic): class ChatAnthropicMessages(ChatAnthropic):
pass pass

View File

@ -146,7 +146,7 @@ def _xml_to_tool_calls(elem: Any, tools: List[Dict]) -> List[Dict[str, Any]]:
@deprecated( @deprecated(
"0.1.5", "0.1.5",
removal="0.3.0", removal="1.0.0",
alternative="ChatAnthropic", alternative="ChatAnthropic",
message=( message=(
"Tool-calling is now officially supported by the Anthropic API so this " "Tool-calling is now officially supported by the Anthropic API so this "

View File

@ -381,7 +381,7 @@ class AnthropicLLM(LLM, _AnthropicCommon):
) )
@deprecated(since="0.1.0", removal="0.3.0", alternative="AnthropicLLM") @deprecated(since="0.1.0", removal="1.0.0", alternative="AnthropicLLM")
class Anthropic(AnthropicLLM): class Anthropic(AnthropicLLM):
"""Anthropic large language model.""" """Anthropic large language model."""

View File

@ -627,7 +627,7 @@ class ChatFireworks(BaseChatModel):
@deprecated( @deprecated(
since="0.2.1", since="0.2.1",
alternative="langchain_fireworks.chat_models.ChatFireworks.bind_tools", alternative="langchain_fireworks.chat_models.ChatFireworks.bind_tools",
removal="0.3.0", removal="1.0.0",
) )
def bind_functions( def bind_functions(
self, self,

View File

@ -654,7 +654,7 @@ class ChatGroq(BaseChatModel):
@deprecated( @deprecated(
since="0.2.1", since="0.2.1",
alternative="langchain_groq.chat_models.ChatGroq.bind_tools", alternative="langchain_groq.chat_models.ChatGroq.bind_tools",
removal="0.3.0", removal="1.0.0",
) )
def bind_functions( def bind_functions(
self, self,

View File

@ -1001,7 +1001,7 @@ class BaseChatOpenAI(BaseChatModel):
@deprecated( @deprecated(
since="0.2.1", since="0.2.1",
alternative="langchain_openai.chat_models.base.ChatOpenAI.bind_tools", alternative="langchain_openai.chat_models.base.ChatOpenAI.bind_tools",
removal="0.3.0", removal="1.0.0",
) )
def bind_functions( def bind_functions(
self, self,

View File

@ -640,7 +640,7 @@ class PineconeVectorStore(VectorStore):
return None return None
@deprecated(since="0.0.3", removal="0.3.0", alternative="PineconeVectorStore") @deprecated(since="0.0.3", removal="1.0.0", alternative="PineconeVectorStore")
class Pinecone(PineconeVectorStore): class Pinecone(PineconeVectorStore):
"""Deprecated. Use PineconeVectorStore instead.""" """Deprecated. Use PineconeVectorStore instead."""