sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.53k stars 261 forks source link

bug: Request Failed with Gemini 1.5 Pro #5351

Open ankykong opened 2 weeks ago

ankykong commented 2 weeks ago

Version

v1.33.1724685353 (pre-release)

Describe the bug

I'm getting this error when trying to use Gemini 1.5 Pro Request Failed: Sourcegraph Cody Gateway: unexpected status code 400: { "error": { "code": 400, "message": "User location is not supported for the API use.", "status": "FAILED_PRECONDITION" } }

Expected behavior

Get an output

Additional context

No response

csvidit commented 2 weeks ago

I am also having this issue

sqs commented 2 weeks ago

Sorry about this. We are looking into it. (In the meantime, all other models are still online.)

ToanPV90 commented 2 weeks ago

That happened to me too.

sqs commented 2 weeks ago

Google is working on a fix for this: https://discuss.ai.google.dev/t/generate-object-error-user-location-is-not-supported-for-the-api-use/37440/25.

We are putting in a workaround on our end in the meantime unless the Google fix comes through very soon.

unknwon commented 2 weeks ago

While Google is still working their fix, we have mitigated the issue on our side by now, please report if the issue still reminds 🙏

ToanPV90 commented 2 days ago

Woot woot! It's all good now 🎉 I think we can finally close this out! 🙌 Thanks a bunch! 😄