#Does createFile now only support the 'fine-tune' purpose? If so, how can I refer to uploaded files?

4 messages · Page 1 of 1 (latest)

pine pollen
#

I would like to upload files to the OpenAI API server so that I may then reference them in a subsequent prompt. The AI at chat.openai.com suggested that this was possible using the 'createFile' method with the 'generic' purpose, and referencing to the uploaded file id in my subsequent 'createCompletion' prompt. But it seems that I always get a 400 response error unless I use the 'fine-tune' purpose along with the exact jsonlines format required by that purpose.

My intent for 'generic' purpose upload was to upload example content files, one by one, for an eventual content generation prompt that refers to the file id's of those examples.

I can see how I could switch to the 'fine-tune' purpose with a {'prompt':'', 'completion':''} like structure, but then fine-tuning is in a whole other pricing bracket. Which is fine but I want to make sure this is my only way.

Any ideas? Thanks!

potent basin
#

You cannot refer to files uploaded in prompts

#

file uploads are only for fine tuning

pine pollen
#

thank you for the quick response 🙂