From 8544f748f230931529fb55e8c3bb7a16cb6ed61d Mon Sep 17 00:00:00 2001 From: aditya thomas Date: Tue, 12 Mar 2024 01:29:10 +0530 Subject: [PATCH] community[patch]: update AnthropicLLM deprecation message (#18869) **Description:** Update AnthropicLLM deprecation message import path for ChatAnthropic **Issue:** Incorrect import path in deprecation message **Dependencies:** None **Lint and test**: `make format`, `make lint` and `make test` were run --- libs/partners/anthropic/langchain_anthropic/llms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/partners/anthropic/langchain_anthropic/llms.py b/libs/partners/anthropic/langchain_anthropic/llms.py index 21356bc6df..e9ab14a397 100644 --- a/libs/partners/anthropic/langchain_anthropic/llms.py +++ b/libs/partners/anthropic/langchain_anthropic/llms.py @@ -175,7 +175,7 @@ class AnthropicLLM(LLM, _AnthropicCommon): """Raise warning that this class is deprecated.""" warnings.warn( "This Anthropic LLM is deprecated. " - "Please use `from langchain_community.chat_models import ChatAnthropic` " + "Please use `from langchain_anthropic import ChatAnthropic` " "instead" ) return values