mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 11:08:55 +00:00
multiple: push deprecation removals to 1.0 (#28236)
This commit is contained in:
parent
4f76246cf2
commit
d1108607f4
@ -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):
|
||||||
|
@ -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 "
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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 "
|
||||||
|
@ -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."""
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user