Retrieve file content API is not allowing to retrive content

Is there any limitation to downloading (retrieving content) files? I got this error and couldn’t find any information on documentation.

  "error": {
    "code": null,
    "message": "Not allowed to download files of purpose: fine-tune",
    "param": null,
    "type": "invalid_request_error"

I tried search file purpose too and got a similar error.

Also, as feedback, I couldn’t find any documentation about error responses. It would be nice to have one.

1 Like


Currently, we only allow downloads on the results of fine-tuning runs and not the input files to the fine tuning run. We also don’t allow downloads for search related files.

Out of curiosity, why do you want to download fine-tuning files? We can also update our documentation to indicate which purposes can be downloaded and which can’t.


Thanks for the reply.
I was just updating the C# SDK. I don’t have any use case other than testing.

1 Like

I had the same experience today.

Downloading the original fine-tuning files again would have been a nice feature to make the whole /files endpoint more “feature complete”.

My current use-case is a “company assistant” based on a company knowledge base. Currently i am working on a web-based file manager and content editor to give selected team-members the ability to update the existing knowledge base.

Reading the API doc gave me the impression that a first rudimentary editor concept could have been so easy as: upload a file once and then have other members: download → update/extend the content in a nice (web-based) editor → upload the file again.

Of course now i have to keep the content in a database which is also ok and maybe even better in the long-run but also includes unplanned effort in the prototyping phase which would have been better to estimate if the docs would have been more clear.

So please update the docs about restrictions or enable the download of fine-tuning files :slight_smile:


1 Like