Skip to content
OpenAI - Uploading ...
 
Notifications
Clear all

OpenAI - Uploading a file and accessing it in the next step (Create a completion)

20 Posts
10 Users
0 Reactions
9 Views
sachin.shrivastava
(@sachin-shrivastava)
Posts: 7
Active Member
 

Upload to an assistant only

 
Posted : 11/01/2024 11:09 am
kitey
(@kitey)
Posts: 2
New Member
 

Thanks for the clarification. Upon reviewing the upload file module, it doesn't specify which assistant the file should be uploaded to. Therefore, I'm assuming that a POST request needs to be made using the OpenAI API module to ensure the file is directed to the correct assistant.

Is this assumption correct?

 
Posted : 11/01/2024 11:14 am
Serge_Ergo
(@serge_ergo)
Posts: 2
New Member
 

The upload file module exclusively uploads your file to your organization. You can view these files at https://platform.openai.com/files .

However,
the Assistant API is unable to access or even list these files for an unspecified reason.

Therefore,
providing a file ID in your prompt will not yield any intended results.

We require OpenAI modules within callin.io to enable attaching files to our prompts, similar to how the OpenAI Analyze image module handles images.

My current workaround involves taking a file (PDF), converting it to an image using the PDF.co module, and then analyzing the image with OpenAI.

 
Posted : 12/01/2024 10:40 am
Serge_Ergo
(@serge_ergo)
Posts: 2
New Member
 

I've found the solution.

Ensure that Map is set to fileID.

 
Posted : 12/01/2024 12:14 pm
Shuriken
(@shuriken)
Posts: 3
New Member
 

The mapped document isn't strictly necessary in the message.
I can proceed without it.
I've only attached several files below.

 
Posted : 19/01/2024 7:36 am
Page 2 / 2
Share: