#Uploading files to OpenAI API

5 messages · Page 1 of 1 (latest)

opaque horizon
#

Hello there, i'm trying to upload/send a file to OpenAI API, not for fine-tuning, i want the file to provide more context as it is containing code that i'd like the API to answer questions about, but it returns an error like:
{
"error": {
"message": "'search' is not one of ['fine-tune'] - 'purpose'",
"type": "invalid_request_error",
"param": null,
"code": null
}
}

No matter what purpose i set: generic, auto, search, code ...etc it always seems to not accept anything other than fine-tune, and the documentation isn't helpful regarding this.

opaque horizon
#

Uploading files to OpenAI API

pearl trench
#

Files can only be uploaded for fine tune and can not be used as context

opaque horizon