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 GitHub
parent cafffe8a21
commit 8544f748f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,7 +175,7 @@ class AnthropicLLM(LLM, _AnthropicCommon):
"""Raise warning that this class is deprecated.""" """Raise warning that this class is deprecated."""
warnings.warn( warnings.warn(
"This Anthropic LLM is deprecated. " "This Anthropic LLM is deprecated. "
"Please use `from langchain_community.chat_models import ChatAnthropic` " "Please use `from langchain_anthropic import ChatAnthropic` "
"instead" "instead"
) )
return values return values