From 53d62865394271a76765fbd1bf6c7c38186e9047 Mon Sep 17 00:00:00 2001 From: Vikram Saraph <93892166+vhxs@users.noreply.github.com> Date: Wed, 21 May 2025 09:31:06 -0400 Subject: [PATCH] Fix link to deprecation alternative for ConversationChain in docs (#31299) **Description:** ConversationChain has been deprecated, and the documentation says to use RunnableWithMessageHistory in its place, but the link at the top of the page to RunnableWithMessageHistory is broken (it's rendering as "html()"). See here at the top of the page: https://python.langchain.com/api_reference/langchain/chains/langchain.chains.conversation.base.ConversationChain.html. This PR fixes the link. **Issue**: N/A **Dependencies**: N/A **Twitter handle:**: If you're on Bluesky, I'm @vikramsaraph.com --- libs/langchain/langchain/chains/conversation/base.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/langchain/langchain/chains/conversation/base.py b/libs/langchain/langchain/chains/conversation/base.py index 8f4e295cf05..e214158b03d 100644 --- a/libs/langchain/langchain/chains/conversation/base.py +++ b/libs/langchain/langchain/chains/conversation/base.py @@ -13,10 +13,7 @@ from langchain.memory.buffer import ConversationBufferMemory @deprecated( since="0.2.7", - alternative=( - "RunnableWithMessageHistory: " - "https://python.langchain.com/v0.2/api_reference/core/runnables/langchain_core.runnables.history.RunnableWithMessageHistory.html" # noqa: E501 - ), + alternative="langchain_core.runnables.history.RunnableWithMessageHistory", removal="1.0", ) class ConversationChain(LLMChain):