Myfiles_browser is not intended for use with JSON files

Hi everyone,

I want to join the latest complains about the laziness and depowered behaviour of GPT API.

In addition to that, I’ve built a tool where people can upload local files and scraped data from social like text, video and images.

We always used a function to get the document from MongoDB (JSON structure) and upload it to OpenAI

// create file locally from scraped data
for (const data of entityScrapedDataList) {
    await fsPromises.writeFile(`${}`, JSON.stringify(data));
    console.log(`Created file for data ${}`);

    // create openAi file from createdFile
    const file = await openAIFilesCreate({
        file: createReadStream(,
    console.log("openAI file ----->", file);

    // delete temp files
    await fsPromises.unlink(;
return file_ids;

In the last days, this function is not working anymore. All the agents are replying:“The myfiles_browser tool is designed for browsing and searching within text-based files, including plain text (.txt), PDFs, and Word documents (.docx). However, it’s not intended for use with JSON files, which are typically data files formatted as JavaScript Object Notation.”

While, in the docs you can find:" The maximum file size is 512 MB and no more than 2,000,000 tokens (computed automatically when you attach a file). Retrieval supports a variety of file formats including .pdf, .md, .docx and many more. More details on the file extensions (and their corresponding MIME-types) supported can be found in the Supported files section below."

and if you go to Supported Files
you can see .json application/json for code interpreter and retrieval.

So, the question is why for the God’s sake is not working anymore?

Thank you


I agree. This is irritating. I was using json files with just text in it. Now I have to add a .txt to the end of the exact same file to get it to work.

1 Like