因为专注
所以专业

openclaw安装成功后的openclaw.json文件

1.openclaw安装成功后的openclaw.json文件如下

{
  "agents": {
    "defaults": {
      "model": "deepseek/deepseek-chat"
    }
  },
  "models": {
    "providers": {
      "deepseek": {
        "baseUrl": "https://api.deepseek.com/v1",
        "api": "openai-completions",
        "apiKey": "${DEEPSEEK_API_KEY}",
        "models": [
          {
            "id": "deepseek-chat",
            "name": "DeepSeek V3",
            "input": ["text"],
            "contextWindow": 128000,
            "maxTokens": 8192
          },
          {
            "id": "deepseek-reasoner",
            "name": "DeepSeek R1",
            "input": ["text"],
            "contextWindow": 128000,
            "maxTokens": 8192,
            "reasoning": true
          }
        ]
      }
    }
  },
  "gateway": {
    "mode": "local",
    "http": {
      "endpoints": {
        "chatCompletions": {
          "enabled": true
        },
        "responses": {
          "enabled": true
        }
      }
    },
    "auth": {
      "mode": "password"
    },
    "controlUi": {
      "allowedOrigins": [
        "https://openclaw.你的网址.cn",
        "http://openclaw.你的网址.cn"
      ],
      "dangerouslyAllowHostHeaderOriginFallback": true,
      "dangerouslyDisableDeviceAuth": true
    }
  }
}

2.网站-设置-反向代理名称openclaw

http://你的网站IP:18789

赞(0)
未经允许不得转载:肖兴来个人博客 » openclaw安装成功后的openclaw.json文件
分享到: 更多 (0)

评论 抢沙发

换一个
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址