LangChain - Fundamentals
What is the main issue with this direct API call code snippet compared to LangChain usage?
import openai
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)