Hi,
I am trying to upload a file sing the answers api through the following command.
curl https://api.openai.com/v1/files
-H “Authorization: Bearer $OPENAI_API_KEY”
-F purpose=“answers”
-F file=“@myfile.jsonl”
But I am receiving the following error:
{
“error”: {
“message”: “‘answers’ is not one of [‘fine-tune’] - ‘purpose’”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null
}
}
But again receiving some error -
{
“error”: {
“message”: “The browser (or proxy) sent a request that this server could not understand.”,
“type”: “server_error”,
“param”: null,
“code”: null
}
}
Hi @ruby_coder,
I am trying to upload some files through OpenAI api. Then I want to ask questions from those files and retrieve the answers. I was following OpenAI API documentation.
When I changed the purpose to ‘fine-tune’ from ‘answers’ it is showing an error message - ‘Missing prompt key on line 1.",’
It is obvious as I am not uploading any training data.
my data is of the following format -
{“text”: “”, “metadata”: “”}
{“text”: “”, “metadata”: “”}