Hi @Muso, Marin
It seems you are using a wrong Content-Type, please make sure you are using below content type -
Content-Type: application/json
I am sharing my working request body here -
{
"purpose": "fine-tune",
"filename": "toy_chat_fine_tuning.jsonl",
"content_url": "https://github.com/openai/openai-cookbook/blob/main/examples/data/toy_chat_fine_tuning.jsonl"
}
My header -
apim-request-id: **
content-type: application/json; charset=utf-8
location: https://yutongai.openai.azure.com/openai/files/file-*****?api-version=2024-06-01
You can use the try it button to check on your input very quick - https://learn.microsoft.com/en-us/rest/api/azureopenai/files/import?view=rest-azureopenai-2024-06-01&tabs=HTTP
Please have a try and let us know how it works.
Then, the role is only working for fine-tune and fine-tune-result as below -
I hope this helps!
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.