LangChain - LLM and Chat Model Integration
What is wrong with this code snippet for connecting to an OpenAI model using Langchain?
from langchain.chat_models import ChatOpenAI
chat = ChatOpenAI(model="gpt-4")
response = chat.predict("Tell me a joke.")
print(response)