#803·OpenManus

API error: Error code: 400 - [{'error': {'code': 400, 'message': 'User location is not supported for the API use.', 'status': 'FAILED_PRECONDITION'}}]

Author: ldrongCreated Mar 18, 2025Updated Sep 13, 2026
Labelsinactive

Bug description

I Use Google Gemini model to config Manus's llm, but when I running, I got this error: API error: Error code: 400 - [{'error': {'code': 400, 'message': 'User location is not supported for the API use.', 'status': 'FAILED_PRECONDITION'}}]

The same, I use the Google Gemini Model on Browser Use project, it work fine. Dose any Advise for that?

configuration as below: [llm] model = "gemini-2.0-flash" # 指定模型版本 base_url = "https://generativelanguage.googleapis.com/v1beta/openai/" # API 端点 api_key = "****" max_output_tokens = 8192 # 响应最大长度(与 Claude 的 max_tokens 等效)
temperature = 0.0 # 控制生成结果的创造性

Bug solved method

Environment information

  • System version:
  • Python version:
  • OpenManus version or branch:
  • Installation method (e.g., pip install -r requirements.txt or pip install -e .):

Screenshots or logs

Source: FoundationAgents/OpenManus