Skip to content

Commit

Permalink
multiple: push deprecation removals to 1.0 (#28236)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Nov 21, 2024
1 parent 4f76246 commit d110860
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ from langchain_core._api.deprecation import deprecated

@deprecated(
since="0.0.<next community version>",
removal="0.2.0",
removal="1.0.0",
alternative_import="langchain_parrot_link.ChatParrotLink"
)
class ChatParrotLink(BaseChatModel):
Expand Down
2 changes: 1 addition & 1 deletion libs/community/langchain_community/embeddings/nemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/anthropic/langchain_anthropic/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/anthropic/langchain_anthropic/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def get_num_tokens(self, text: str) -> int:
)


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

Expand Down
2 changes: 1 addition & 1 deletion libs/partners/fireworks/langchain_fireworks/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def _llm_type(self) -> str:
@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,
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/groq/langchain_groq/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def _combine_llm_outputs(self, llm_outputs: List[Optional[dict]]) -> dict:
@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,
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/openai/langchain_openai/chat_models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ def _should_stream(
@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,
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/pinecone/langchain_pinecone/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def delete(
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."""

Expand Down

0 comments on commit d110860

Please sign in to comment.