Closed pletinsky closed 5 months ago
@pletinsky how did you solve the problem?
@wodka, I don't remember, unfortunately. We avoided using the open ai assistant. It seems that there was a need to upgrade to the beta version. But I could be wrong.
Hi!
I encountered the same error. Looking at the openai github, file_ids
should be provided as part of tool_resources
, see this comment.
I am using:
langchain==0.2.9
langchain-openai==0.1.17
openai==1.35.13
Under which conditions is this confirmed to be working?
Edit: I got the OpenAI Assistants running by removing all injections of file_ids
from the beta.assistants.create
call and thread messages in langchain/agents/openai_assistant/base.py
. I definitely miss a lot of context here, so please forgive me if my proposed solution makes no sense. In my naive perspective, I would propose removing file_ids
from the top level and only include it in an optional tool_resources
argument.
Checked other resources
Example Code