How to pass bytes (base64) instead of string (utf-8) to Gemini using requests package in Python?
I would like to use the streamGenerateContent method to pass an image/pdf/some other file to Gemini and have it answer a question about a file. The file would be local and not stored on Google CloudStorage.