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
This commit is contained in:
aditya thomas
2024-03-12 01:29:10 +05:30
committed by William Fu-Hinthorn
parent 34dbafc71a
commit 0b72e07d46

View File

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