Responses API now has expanded file input types: docx, pptx, csv, xlsx

Thank you for this update! Is it possible to have a bit more details on how the attachments ends up being “attached” to the user prompt?

In my tests, they seem to be simply appended to the user text, without filename (see Input_file unreliable on inlined (data:) content (post 2026-02 update) - API / Bugs - OpenAI Developer Community).
While filename appears to be used in file type detection, the metadata does not appear to be provided to the prompt, and the llm does not seem to be aware it is dealing with an attachment. Any additional details would help us understand pitfalls to avoid (ex. if text files are simply appended, they pose a different prompt injection threat than if they are handled as first class file attachments)

Also, the documentation at File inputs | OpenAI API should probably be a bit more precise for Base64 - where it says:

                "content": [
                    {
                        "type": "input_file",
                        "filename": "draconomicon.pdf",
                        "file_data": "...base64 encoded PDF bytes here..."
                    },

the "file_data": "...base64 encoded PDF bytes here..." should probably clarify that the format is actually data:application/pdf;base64,base64 encoded PDF bytes here

1 Like