from llama_index.llms.openai import OpenAI response = OpenAI().complete("Paul Graham is ") print(response)
.chat()
from llama_index.core.llms import ChatMessage llm.chat([ ChatMessage(role="system", content="..."), ChatMessage(role="user", content="Hello!"), ])