Currently only images are detected correctly. Video formats (like .mov) or plain text (.txt) documents are erroneously rejected.
Steps to reproduce:
- let buffer = fs.readFileSync("path/to/any/mov or txt file")
- pass buffer to the API as a file upload
The API will return an error saying "Error: Please provide a valid file format that is accepted by Gemini. Learn more about valid formats here: https://ai.google.dev/gemini-api/docs/prompting_with_media?lang=node#supported_file_formats".
Expected behaviour: The API should accept all these video and plaintext formats.
Currently only images are detected correctly. Video formats (like .mov) or plain text (.txt) documents are erroneously rejected.
Steps to reproduce:
The API will return an error saying "Error: Please provide a valid file format that is accepted by Gemini. Learn more about valid formats here: https://ai.google.dev/gemini-api/docs/prompting_with_media?lang=node#supported_file_formats".
Expected behaviour: The API should accept all these video and plaintext formats.