求问用 newapi 接始皇chat2api 的错误信息

在 newapi 通道测试 access token可用的,在 lobechat 里对话也成功了。
但是,说不了几句(刚才甚至就说了一句),就一直是这个错误:
{
“error”: {
“message”: “message contains sensitive words: [test] (request id: 202404151631257273453973S6BTYkR)”,
“type”: “new_api_error”,
“param”: “”,
“code”: “sensitive_words_detected”
},
“endpoint”: “https://api.**./v1”,
“provider”: “openai”
}
我 newapi lobechat 就缺省设置,没有加什么敏感词接口啊。关键我的对话就是一句"please revise the docker compose yml" 让它修订下我前面消息问的 compose 文件,不存在什么敏感。

1 个赞

能不能看看错误信息啊,你肯定前后文有【test】这个词语,并且你的newapi在设置里设置了屏蔽词【test】

new api 默认有个test的屏蔽词。

4 个赞

这条

晕,没注意到 newapi 还有这个缺省配置,有点蛋疼。

必然没有 test 这个词。

提示信息告诉你有

它不按单词划分,按字符检测的,比如 latest 也会被【test】误检

1 个赞

access token可以转为api接入newapi了?

真雷。。

6