openclaw 小龙虾报错

启动:openclaw gateway --bind lan --port 18789 --verbose

访问界面

报错1: origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

解决:

vim ~/.openclaw/openclaw.json

gateway.controlUi下增加:

allowedOrigins": ["http://10.10.xxx.xxx:端口"] # 浏览器 访问的地址,不要使用*

完整的片段如下:

"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"controlUi": {
"allowedOrigins": ["http://10.10.xxx.xxxx:18789"]
},

报错2:control ui requires device identity (use HTTPS or localhost secure context)

解决:

vim ~/.openclaw/openclaw.json,增加:

"allowInsecureAuth": true,
"dangerouslyDisableDeviceAuth": true

完整的片段如下:

"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"controlUi": {
"allowedOrigins": ["http://10.10.xxx.xxxx:18789"],
"allowInsecureAuth": true,
"dangerouslyDisableDeviceAuth": true
},

报错3:device identity required

解决:

服务器执行openclaw dashboard ,获取到token=xxxxxxxx

拼接到浏览器地址里访问,注意加&拼接

如:​http://10.10.xxxx:18789/ chat ?session=main&token=xxxxxxx​

报错4: Agent failed before reply: Model context window too small (4096 tokens). Minimum is 16000. Logs: openclaw logs --follow

解决:

vim ~/.openclaw/openclaw.json

修改models里的两个参数为

"contextWindow": 16000, "maxTokens": 16000

报错5:400 status code (no body)

解决:模型调用问题,可以先使用阿里云的调试

主要修改

'baseUrl': 'https://dashscope.aliyuncs.com/compatible-mode/v1',
'apiKey': 'sk-你的APIKey',
'api': 'openai-completions',
'models': [
{
'id': 'qwen-plus',

————————————————
版权声明:本文为CSDN博主「熟悉开机关机重启」的原创文章,遵循CC 4.0 BY-SA版权协议。
原文链接:https://blog.csdn.net/qq_35702095/article/details/158418298

版权声明:
作者:yxbinghe
链接:https://www.zhanhao.ch/?p=626
来源:ice.99
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>