I cannot upload file tex, what should i do

I want to update the text in a file using the Gemini API and leverage AI to translate a TeX file. However, the Gemini API currently doesn’t support TeX files. What are my options?

I would suggest:

  • rename file to input_document.txt (text extension)
  • insert some lines of non-TeX header into the file, to break the MIME parsing of contents
  • provide a in-context message loader of plain text files for direct AI use.
  • copy and paste to your user interface input box.
1 Like

I hope Gemini official understand Tex file, ATM I will workaround with your suggest. yes, ok thanks.

1 Like