Hi, hope this helps: Traceback (most recent call last): File "/Users/nana/llama_mj/queryenginetool.py", line 54, in <module> response = agent.chat("¿Cuál es el nombre del presidente de los Estados Unidos?") File "/Users/nana/venv/lib/python3.10/site-packages/llama_index/agent/react/base.py", line 157, in chat chat_response = self._llm.chat(input_chat) AttributeError: 'str' object has no attribute 'chat'
Upon revision after your response, I noticed I hadn't set it up like in the docs. Works after modifying with llama_index.llms import OpenAI llm = OpenAI(model="gpt-3.5-turbo-0613"). Thank you for your help!