天翼云openclaw钉钉配置解决,解决404、401报错

根本不能一键配置,配置都过时了😅

天翼云自带的openclaw配置版本太低了,需要严格要求以下格式:

1.打开~/.openclaw/openclaw.json

添加红框中的内容:

也就是钉钉官网手册格式:

复制代码
{
  "channels": {
    "dingtalk-connector": {
      "clientId": "钉钉应用的Client Secret",       // 必选:填入上方的 钉钉 Client ID
      "clientSecret": "钉钉应用的Client Secret", // 必选:填入上方的 Client Secret
      "gatewayToken": "Gateway 认证 token",  // 必选:Gateway 认证 token, openclaw.json配置中 gateway.auth.token 的值 
      "gatewayPassword": "",              // 可选:Gateway 认证 password(与 token 二选一)
      "sessionTimeout": 1800000           // 可选:会话超时(ms),默认 30 分钟
    }
  },
  "gateway": { // gateway通常是已有的节点,配置时注意把http部分追加到已有节点下
    "auth": {
      "mode": "token",
      "token": "Gateway 认证 token" // 必选:一般是安装时默认就有
    },
    "http": {
      "endpoints": {
        "chatCompletions": {
          "enabled": true // 必选
        }
      }
    }
  }
}

你也可参考如下链接:https://open.dingtalk.com/document/dingstart/install-openclaw-locally#938506c3c0ufy

关联解决一下问题:

响应中断: Gateway error: 404 - Not Found,

响应中断: Gateway error: 401 - {"error":{"message":"Unauthorized","type":"unauthorized"}}

相关推荐
狮子再回头4 小时前
relhat9.1 sshd配置
linux·服务器·网络
w3296362715 小时前
八、OpenCode 高阶玩法:CLI 自动化、CI/CD 集成与远程协作
运维·ci/cd·自动化·ai编程·开发工具·opencode
不爱编程的小陈5 小时前
深入解析 Go 网络 I/O 的底层引擎:从 epoll 到 netpoll
服务器·网络·golang
烁3475 小时前
liunx命令不完整版
linux·运维·服务器
vsropy5 小时前
cmake版本不对不能直接删/无法source
linux·运维·服务器
Esaka_Forever6 小时前
Zapier 云端无代码 AI 工作流编排自动化平台
运维·自动化
c238566 小时前
git常见错误和ssh验证推送
运维·git·ssh
火山上的企鹅6 小时前
Codex实战:APP远程升级服务搭建(四)Node 服务端自动识别 APK 信息
android·服务器·git·github·qgc
哈德森hh6 小时前
从手动操作到自动化管理:Twitter多账号运营效率优化实践
运维·自动化·twitter
IT WorryFree6 小时前
ESXi 全维度监控方式完整分类(按使用场景排序)
运维·服务器·网络