Closed tsuga closed 2 months ago
Have you tried uploading other files, such as PDFs or audio files?
I tried with a PDF file. Same error for PDF.
Are you sure your key is good? This Files notebook works:
https://colab.sandbox.google.com/github/google-gemini/cookbook/blob/main/quickstarts/File_API.ipynb
Is it possible it's picking up on some application-default credentials and getting confused?
@MarkDaoust Thank you for checking. I've confirm that the key is good. I am on Kaggle environment.
Oh, kaggle! I was just talking to them.
This might be the fix you need: https://github.com/google-gemini/generative-ai-python/pull/548 It's in v0.8.1.
Try updating to 0.8.1 and see if that works. It if doesn't it may be a matter of waiting until Kaggle updates it to 0.8.1, which should be soon, since they were asking me to fix this.
Thanks. I've updated the library to v0.8.1 and it works without error!
Description of the bug:
When I try to upload an image to Gemini, it gives me an error. I am using v0.7.2.
Actual vs expected behavior:
Any other information you'd like to share?
I've confirmed that the API key is correct by running another text-only prompt.