Find answers from the community

Updated 3 months ago

Trying to make an API for an OpenAI

Trying to make an API for an OpenAI agent, how can I manually set the chat history of the agent?
W
1 comment
You can do it like this:
Plain Text
from llama_index.agent.openai import OpenAIAgent

agent = OpenAIAgent.from_tools(chat_history=ADD_HERE,....)
Add a reply
Sign up and join the conversation on Discord