Invalid input: Expected file type to be a supported format: .pdf but got .docx

When I use file search with new Response API and instead of PDF i use docx in vector store i get error “Invalid input: Expected file type to be a supported format: .pdf but got .docx.”

With PDF new response api works but not with docx

However documentation mentions vector store supports docx.

1 Like

I have the same problem! I am able upload all type of files via https://api.openai.com/v1/files and it gives a file_id.

however, when I ask via the API t convert into Markdown it only works with .pdf but not for .docx and .doc, while the front-end does.

Anybody a clue?

confirmed. The playground file upload allows me to upload a text file for example and I can ask questions about it in the same query. However programatically I get this error.

input

{ 'model': 'gpt-4o-mini', 'input': [{'role': 'user', 'content': [{'type': 'input_file', 'file_id': 
'file-SYjmkPFtqptWYLy8dDLt3D'}, {'type': 'input_text', 'text': 'summarise the release process for alleycat'}]}], 'temperature': 0.7, 'instructions': 'The 
user has attached a file for you to analyze.'}

error:

{'error': {'message': 'Invalid input: Expected file type to be a supported format: .pdf but got .md.', 'type': 
'invalid_request_error', 'param': 'input', 'code': None}}