After using Gemini API fine through a Google Cloud Node JS function, I'm suddenly getting "User location is not supported for the API use." I am using a US-based (us-central1) Google Cloud function to call the code, and currently based in the UK. This has all worked fine until the last day. I now get:
[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [400 Bad Request] User location is not supported for the API use.
Has anyone else had this when both the US and UK are listed as supported / any ideas why this might be happening please?
Very many thanks
Solved! Go to Solution.
Found the issue for anyone with the same: https://discuss.ai.google.dev/t/generate-object-error-user-location-is-not-supported-for-the-api-use...
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |