Hi! I’m trying to Initialize call. OpenAI FileUpload - Body type = Form‑data. After I choose form-data. I should get an option to choose out of scroll down. I should see a small gray section titled “Body” above. But im not. So instead of choosing it out of scroll down – I added it manually. In the grid I need to add exactly two rows:
purpose → Type: Text → Value assistants.
file → Type: File → Value must be empty in the editor.
But- because I added it manually – when I try to Initialize call I get the message “undefined error: the parameter file cannot be empty”.
That error happens because the file parameter needs to be added via the form-data dropdown, not manually. Try toggling Body type = Form-data again, the gray “Body” section should appear. Then just add purpose = assistants and file as a file (leave value blank). That should let it initialize properly.
Yeah exactly! I added the file parameter manually, because I did not get the option of the form-data dropdown. I did try toggling Body type Form-data again and did not get the gray “Body” section. Any thoughts why I don’t get the option to add the file parameter via the form-data dropdown? Thanks!
That usually happens when the file parameter is added manually instead of through the form-data setup. Try this: Delete your current API call. Create it again and set Body type → Form-data. Once you do that, you should see a gray “Body” section appear. Inside it, add: purpose → Text → value: assistants file → File → leave the value blank If the gray “Body” section doesn’t appear, it’s likely a small Bubble glitch,just refresh the page or re-open the API connector, and it should show up again.
By the way - I noticed that on the first screen shot there was no grey “body” area underneath “Form-data”. On my end that is exactly what I see. I was under the impression that’s exactly the problem (that I manually inserted the parameters versus chose it out of a scroll down and that is the reason I keep receiving the same error "undefined error: the parameter file cannot be empty”.
Send me a picture of your call. Man the only thing that makes a bit of sense from what you’re talking about is whether you’re not uploading or it’s a file format that open AI doesn’t accept.
Use the api call equals. Put the Content-Type and value private multipart/form-data, else will not possible send the file, remove the key ‘OpenAI-Project’, in purpose change for ‘fine-tune’ and private. In file remeber the selection the attachment
You could try this plugin OpenAI Assistant - RAG Based Chat . It has an action to upload files to OpenAI storage and also has actions to create assistants, vector stores, and send messages.
This is due to the upload url is pointing to the fine tuning endpoint. You should be uploading the file to - https://api.openai.com/v1/vector_stores/{Insert vector store id here}/files.