26 lines
819 B
Go
Raw Normal View History

2024-11-06 09:16:18 +08:00
package errcode
const (
ErrNoContent = ErrNlp + iota
2024-11-16 02:38:34 +08:00
ErrNoDocFound
2024-11-18 00:39:36 +08:00
ErrPythonServierDown
ErrGlmBusy
ErrGlmHistoryLoss
ErrGlmNewClientFail
2024-11-06 09:16:18 +08:00
)
func NlpMsgInit(m msg) {
m[ErrNoContent] = "内容为空"
2024-11-16 02:38:34 +08:00
m[ErrNoDocFound] = "没有找到相关文档"
m[ErrGlmNewClientFail] = "GLM 新建客户端失败"
2024-11-16 02:38:34 +08:00
}
func NlpMsgUserInit(m msg) {
m[ErrNoContent] = "请输入内容"
2024-11-18 00:39:36 +08:00
m[ErrNoDocFound] = "小护没有在知识库中找到相关文档。😿"
2024-11-18 00:40:32 +08:00
m[ErrPythonServierDown] = "小护的🐍python服务挂了此功能暂时无法使用。😿"
m[ErrGlmBusy] = "现在有太多人咨询小护,请稍后再来。"
m[ErrGlmHistoryLoss] = "抱歉!小护找不到之前的会话记录了,我们重新开始新的对话吧。"
// m[ErrGlmNewClientFail] = "小护新建客户端失败了,请稍后再来。"
2024-11-06 09:16:18 +08:00
}