ai-sdk-provider icon indicating copy to clipboard operation
ai-sdk-provider copied to clipboard

User location is not supported for the API use.

Open Vampxgg opened this issue 3 months ago • 0 comments

I have encountered this error many times when using openrouter. I need to know why and how to fix it.: [openrouter] Error: req_id: 11ba6b0acb PluginInvokeError: {"args":{},"error_type":"ValueError","message":"{'message': 'Provider returned error', 'code': 400, 'metadata': {'raw': '{\n "error": {\n "code": 400,\n "message": "User location is not supported for the API use.",\n "status": "FAILED_PRECONDITION"\n }\n}\n', 'provider_name': 'Google AI Studio'}}"}

Vampxgg avatar Sep 23 '25 07:09 Vampxgg