You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenAI changed their api and now llama-index has errors with OpenAIAssistantAgent.
Comment from OpenAI about the issue I believe.
From [https://docs.llamaindex.ai/en/stable/examples/agent/openai_assistant_agent/](LLama Index example code)
fromllama_index.agent.openaiimportOpenAIAssistantAgentagent=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.",
)
How should I resolve this until it gets resolved in a better manner?
Version
0.10.30
Steps to Reproduce
fromllama_index.agent.openaiimportOpenAIAssistantAgentagent=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.",
)
Relevant Logs/Tracbacks
Traceback (most recent call last):
File ".../projects/server/error.py", line 7, in<module>
agent = OpenAIAssistantAgent.from_new(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../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'
The text was updated successfully, but these errors were encountered:
Hello @parnell! 👋 I'm Dosu, a bot here to help you squash bugs, answer your questions, and guide you towards becoming a contributor while we wait for a human maintainer to chime in. I'm looking into your issue with the OpenAIAssistantAgent and will get back to you with a solution shortly!
Bug Description
OpenAI changed their api and now llama-index has errors with OpenAIAssistantAgent.
Comment from OpenAI about the issue I believe.
From [https://docs.llamaindex.ai/en/stable/examples/agent/openai_assistant_agent/](LLama Index example code)
How should I resolve this until it gets resolved in a better manner?
Version
0.10.30
Steps to Reproduce
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: