-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change from region / projectID to API KEY got exception running in appscript #4
Comments
If you run
|
It fails with a pdf file and api key, but It runs with pdf file and project id and region and It does work if using vertex ai IDE. const genAI = new GeminiApp("API_KEY"); It is a requiment to use API KEY instead of PROJECT ID and REGION
throws with api key and pdf file
To my understanding, It accepts media files |
It gets confusing with the Google AI Studio and Vertex AI capabilities. The different model versions add some complexity. The ability to inline pdf's is a preview feature in Gemini 1.5 Pro:
to:
You can read more about an Overview of multimodal models |
I am running in appscriot. If I run it using location and project id runs fine. But, If I change to api key I got
Request to Gemini failed with response code 400 - {
"error": {
"code": 400,
"message": "Add an image to use models/gemini-pro-vision, or switch your model to a text model.",
"status": "INVALID_ARGUMENT"
}
}
I am using
The text was updated successfully, but these errors were encountered: