I uploaded a PDF file to OPENAI and when I ask questions that should be answered using the content of that file, I repeatedly receive the message:
HTTP error code: 400
{
"error": {
"message": "Invalid input: Expected file type to be a supported format: .jpeg, .jpg, .png, .gif, .webp but got .pdf.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
}
The PDF file contains only text suggesting JSON generation for sales questions. An example question: How much did I sell in January 2025, accumulated by day?
Another question is that I always need to use getfiles for the agent to respond based on the uploaded files. Is this the default behavior?