Cherry Studio 配置 openclaw 报错 401和 Gateway 超时 记录

摘要: 前几天碰到一个奇怪的问题,在 Cherry Studio 上配置了龙猫的API,能正常聊天,但是在 openclaw 中却报错。 报错如下: HTTP 401: "Api key is invalid" Gateway failed to start within 30000ms (3 polls)...

前几天碰到一个奇怪的问题,在 Cherry Studio 上配置了龙猫的API,能正常聊天,但是在 openclaw 中却报错。

报错如下:

HTTP 401: "Api key is invalid"
Gateway failed to start within 30000ms (3 polls)

我自己用AI等各种咨询都没有解决方案。

解决方案

龙猫提供2种API接口:OpenAI API 格式和 Anthropic API 格式
我拿大模型 LongCat-Flash-Chat 举例
在 Cherry Studio 上原始的大模型配置名称是LongCat Flash Chat,在官网上却有另外一种名称是:LongCat-Flash-Chat
但我无意中自己另外配置了龙猫大模型LongCat-Flash-Chat,就能进入 openclaw,而且不报错。
不过这2种大模型名称配置不管是哪一种在 Cherry Studio 上对话都是没有任何问题。