返回列表 发布新帖

[用户教程] 【养虾活动】openclaw 钉钉channel的报错400解决

279 0
发表于 2026-4-9 23:04:17 | 查看全部 阅读模式 IP:–河南–郑州

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×

问题
钉钉发消息收到 400 错误:Invalid `model`. Use `openclaw` or `openclaw/<agentId>`.

根因
钉钉插件把 model 参数硬编码为 `'main'`,但 Gateway HTTP 端点只接受 `'openclaw'`。

修改1. 添加钉钉渠道配置
File: `~/.openclaw/openclaw.json`

Added to `channels`:
```json
"dingtalk-connector": {
  "enabled": true,
  "clientId": "dingrl*******",
  "clientSecret": "WcU...",  // 你的 AppSecret
  "gatewayToken": "123****"
}
```

2. 启用 HTTP 端点  解决报错404
File: `~/.openclaw/openclaw.json`

Added to `gateway`:
```json
"http": {
  "endpoints": {
    "chatCompletions": { "enabled": true }
  }
}
```

3. 修复 model 参数 解决报错400
File: `~/.openclaw/extensions/dingtalk-connector/plugin.ts`

Line 1430:
```diff
- model: 'main',
+ model: 'openclaw',
```


评论

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright © 2026 绿联NAS私有云社区 版权所有 All Rights Reserved. 粤公网安备44030002002555号| 粤ICP备12028978号
关灯 在本版发帖
联系技术支持
返回顶部
快速回复 返回顶部 返回列表