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
pull/18936/head
aditya thomas 7 months ago committed by GitHub
parent cafffe8a21
commit 8544f748f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save