Unsupported MIME type: text/md

The Gemini 2.0 series supports Markdown files with the MIME type text/md. However, the 2.5 series returns the error “Unsupported MIME type: text/md”. This appears to be a bug, since the docs mention compatibility with this MIME type.

As a separate issue, the MIME type net.daringfireball.markdown should also be supported for Markdown files, since this is the MIME type that is returned for Markdown files on Apple’s platforms. I’ve had to work around this in my own Gemini client by using the MIME type that the Gemini API expects. Both MIME types should be supported.

Hi @Superabundant , Welcome to the forum.

Thanks for bringing this to our attention, we really appreciate you pointing it out. I have looked into it and it seems the text/md MIME type isn’t supported with the 2.5 model. It does work when using the file API to process the document, but fails when processing the file directly. We have escalated this to our internal engineering team for further investigation.