Find answers from the community

Updated 6 months ago

Is anyone else having this issue while

Is anyone else having this issue while using assistants
Plain Text
agent = OpenAIAssistantAgent.from_new(
    name="Math Tutor",
    instructions="You are a personal math tutor. Write and run code to answer math questions.",
    openai_tools=[{"type": "code_interpreter"}],
    instructions_prefix="Please address the user as Jane Doe. The user has a premium account.",
)

Error:
Plain Text
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/trike/api/env/lib/python3.11/site-packages/llama_index/agent/openai/openai_assistant_agent.py", line 230, in from_new
    assistant = client.beta.assistants.create(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Assistants.create() got an unexpected keyword argument 'file_ids'


I am referencing https://docs.llamaindex.ai/en/v0.10.34/examples/agent/openai_assistant_agent/

I am using following versions:
Plain Text
llama-hub==0.0.79.post1
llama-index==0.10.5
llama-index-agent-openai==0.1.1
llama-index-core==0.10.5
llama-index-embeddings-openai==0.1.1
llama-index-legacy==0.9.48
llama-index-llms-openai==0.1.1
llama-index-multi-modal-llms-openai==0.1.1
llama-index-program-openai==0.1.1
llama-index-question-gen-openai==0.1.1
llama-index-readers-file==0.1.3
llama-index-readers-web==0.1.3
openai==1.33.0
L
s
2 comments
openai majorly updated and broke their api, haven't had time to update this class yet

However, it should be mostly working if you update your packages there
okay; @Logan M should i update it to latest of all of them;

also I am using llama-index 0.10.5 and on a high-level; is tere any major changes to the latest version; that might break VectorStoreIndex?
Add a reply
Sign up and join the conversation on Discord