From d1108607f4d7b39858ee5a44a0b9b6f233bf9f65 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Wed, 20 Nov 2024 19:56:29 -0800 Subject: [PATCH] multiple: push deprecation removals to 1.0 (#28236) --- docs/docs/contributing/how_to/integrations/from_template.mdx | 2 +- libs/community/langchain_community/embeddings/nemo.py | 2 +- libs/partners/anthropic/langchain_anthropic/chat_models.py | 2 +- libs/partners/anthropic/langchain_anthropic/experimental.py | 2 +- libs/partners/anthropic/langchain_anthropic/llms.py | 2 +- libs/partners/fireworks/langchain_fireworks/chat_models.py | 2 +- libs/partners/groq/langchain_groq/chat_models.py | 2 +- libs/partners/openai/langchain_openai/chat_models/base.py | 2 +- libs/partners/pinecone/langchain_pinecone/vectorstores.py | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/docs/contributing/how_to/integrations/from_template.mdx b/docs/docs/contributing/how_to/integrations/from_template.mdx index e2edc80eae0..22ff840ab79 100644 --- a/docs/docs/contributing/how_to/integrations/from_template.mdx +++ b/docs/docs/contributing/how_to/integrations/from_template.mdx @@ -112,7 +112,7 @@ from langchain_core._api.deprecation import deprecated @deprecated( since="0.0.", - removal="0.2.0", + removal="1.0.0", alternative_import="langchain_parrot_link.ChatParrotLink" ) class ChatParrotLink(BaseChatModel): diff --git a/libs/community/langchain_community/embeddings/nemo.py b/libs/community/langchain_community/embeddings/nemo.py index 38a20ffb450..478928e047f 100644 --- a/libs/community/langchain_community/embeddings/nemo.py +++ b/libs/community/langchain_community/embeddings/nemo.py @@ -45,7 +45,7 @@ def is_endpoint_live(url: str, headers: Optional[dict], payload: Any) -> bool: @deprecated( since="0.0.37", - removal="0.2.0", + removal="1.0.0", message=( "Directly instantiating a NeMoEmbeddings from langchain-community is " "deprecated. Please use langchain-nvidia-ai-endpoints NVIDIAEmbeddings " diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py index 2ed41036767..719327e78d1 100644 --- a/libs/partners/anthropic/langchain_anthropic/chat_models.py +++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py @@ -1329,7 +1329,7 @@ def _make_message_chunk_from_anthropic_event( 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): pass diff --git a/libs/partners/anthropic/langchain_anthropic/experimental.py b/libs/partners/anthropic/langchain_anthropic/experimental.py index eae408862da..2d2e35fae24 100644 --- a/libs/partners/anthropic/langchain_anthropic/experimental.py +++ b/libs/partners/anthropic/langchain_anthropic/experimental.py @@ -146,7 +146,7 @@ def _xml_to_tool_calls(elem: Any, tools: List[Dict]) -> List[Dict[str, Any]]: @deprecated( "0.1.5", - removal="0.3.0", + removal="1.0.0", alternative="ChatAnthropic", message=( "Tool-calling is now officially supported by the Anthropic API so this " diff --git a/libs/partners/anthropic/langchain_anthropic/llms.py b/libs/partners/anthropic/langchain_anthropic/llms.py index 986137902c3..0b2579946d7 100644 --- a/libs/partners/anthropic/langchain_anthropic/llms.py +++ b/libs/partners/anthropic/langchain_anthropic/llms.py @@ -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): """Anthropic large language model.""" diff --git a/libs/partners/fireworks/langchain_fireworks/chat_models.py b/libs/partners/fireworks/langchain_fireworks/chat_models.py index 11b24197f60..92977104706 100644 --- a/libs/partners/fireworks/langchain_fireworks/chat_models.py +++ b/libs/partners/fireworks/langchain_fireworks/chat_models.py @@ -627,7 +627,7 @@ class ChatFireworks(BaseChatModel): @deprecated( since="0.2.1", alternative="langchain_fireworks.chat_models.ChatFireworks.bind_tools", - removal="0.3.0", + removal="1.0.0", ) def bind_functions( self, diff --git a/libs/partners/groq/langchain_groq/chat_models.py b/libs/partners/groq/langchain_groq/chat_models.py index b935922e6af..f8e518cc4fe 100644 --- a/libs/partners/groq/langchain_groq/chat_models.py +++ b/libs/partners/groq/langchain_groq/chat_models.py @@ -654,7 +654,7 @@ class ChatGroq(BaseChatModel): @deprecated( since="0.2.1", alternative="langchain_groq.chat_models.ChatGroq.bind_tools", - removal="0.3.0", + removal="1.0.0", ) def bind_functions( self, diff --git a/libs/partners/openai/langchain_openai/chat_models/base.py b/libs/partners/openai/langchain_openai/chat_models/base.py index 94c96202b07..4579e94a496 100644 --- a/libs/partners/openai/langchain_openai/chat_models/base.py +++ b/libs/partners/openai/langchain_openai/chat_models/base.py @@ -1001,7 +1001,7 @@ class BaseChatOpenAI(BaseChatModel): @deprecated( since="0.2.1", alternative="langchain_openai.chat_models.base.ChatOpenAI.bind_tools", - removal="0.3.0", + removal="1.0.0", ) def bind_functions( self, diff --git a/libs/partners/pinecone/langchain_pinecone/vectorstores.py b/libs/partners/pinecone/langchain_pinecone/vectorstores.py index 05fbd919954..9dacbd2488f 100644 --- a/libs/partners/pinecone/langchain_pinecone/vectorstores.py +++ b/libs/partners/pinecone/langchain_pinecone/vectorstores.py @@ -640,7 +640,7 @@ class PineconeVectorStore(VectorStore): 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): """Deprecated. Use PineconeVectorStore instead."""