LangChain - LLM and Chat Model Integration
Identify the error in this code snippet:
from langchain.chat_models import ChatAnthropic
client = ChatAnthropic('claude-v1')
response = client.invoke({'messages': [{'role': 'user', 'content': 'Hi'}]})