Closed doggy8088 closed 7 months ago
Hi @doggy8088 Did you upload any files beforehand?
Hi @doggy8088 Do you have access to the Gemini 1.5 API and File API?
Could you please check whether you can make a REST API call using cURL?
GET https://generativelanguage.googleapis.com/v1beta/files?key=$GOOGLE_API_KEY
I assume that you might not have access to the API endpoints (yet).
I used the wrong key. The key to use must be created under the GCP Project that enabled for Gemini 1.5 Pro.
The code:
The result:
I don't know what's the exact problem I met. I can't see response body (JSON) from the Gemini API.
Related: https://github.com/mscraftsman/generative-ai/issues/6 and https://github.com/mscraftsman/generative-ai/issues/19