services:
  - type: web
    name: meetspot
    runtime: python
    plan: free
    buildCommand: pip install -r requirements.txt
    startCommand: python web_server.py
    healthCheckPath: /health
    envVars:
      - key: AMAP_API_KEY
        sync: false  # 必需：在 Render 控制台设置
      - key: LLM_API_KEY
        sync: false  # 必需：在 Render 控制台设置 (DeepWisdom API Key)
      - key: LLM_API_BASE
        value: "https://newapi.deepwisdom.ai/v1"
      - key: LLM_MODEL
        value: "deepseek-chat"  # 推荐：中文能力强、性价比高
      - key: PYTHON_VERSION
        value: "3.11"
      - key: PORT
        value: "8000"
    autoDeploy: true
    region: singapore  # 离中国较近
