Open masihur1989 opened 4 months ago
Looks like a dupe of #120
I looked in to it. And ai studio seem to generate code in Python and JS that looks very similar to this when a PDF is uploaded.
also look like an example for processing PDF file exist in the vertex sdk for go. https://cloud.google.com/vertex-ai/generative-ai/docs/samples/generativeaionvertexai-gemini-pdf
PDFs are supported now -- see examples
@eliben thanks for the update. I have checked and pdf is working fine. Is there any timeline at this time for supporting docx?
This is a general API issue, not specific to the Go SDK. I suggest asking in https://discuss.ai.google.dev/
Description of the bug:
Using the below snippet getting error while trying to upload files to generate content. Using model
gemini-1.5-flash
Actual vs expected behavior:
Getting Below errors.
For pdf format
googleapi: Error 400: Unsupported MIME type: application/pdf
For docx format.
googleapi: Error 400: Unsupported MIME type: application/zip
Any other information you'd like to share?
No response