Error with Fine-Tuning model

Running the following command line script
curl url -H “Content-Type: application/json” -H “Authorization: Bearer $OPENAI_API_KEY”
-d “{“training_file”:“file-tj2hlwILqdAw8HtZW5LgROHQ”,“model”:“davinci”,“suffix”:“fine-tune-1”}”

and getting the following error:
{
“error”: {
“message”: “Your request contained invalid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null
}
}
The JSON looks fine to me. So what could be the possible error.

Can you share the first line of the JOSNL?

Actually there was nothing wrong with the json or jsonl format. I used Postman to call the API and it worked. Some issue with using curl with the OpenAI API. They should look into it.

Ah, well your original post is using curly-quotes, didn’t notice without the code highlighting. I bet if you replaced the quotes with standard-quotes " it’d be fine.