I am trying to create an assistant using the “type”:“retrieval” tool but it’s throwing the below error.
TypeError: create() got an unexpected keyword argument 'file_ids'
Below is the code I am using:
client.beta.assistants.create(name='reader ai', instructions='You are a file reader who helps with files', tools=[{"type": "retrieval"}], model=model, file_ids=[file_obj.id])
I could not find the reference in the api for file_ids. Is this deprecated or replaced with something else?
You can see a second method for reducing the number of calls. but the path I describe lets you ensure that you capture and administer all the IDs you need for future operations in a straightforward (ahem) manner.