chore: 打招呼的时候输出本项目地址

This commit is contained in:
RockYang 2023-05-09 16:11:50 +08:00
parent 10b381965e
commit 942e482ca4

View File

@ -52,6 +52,8 @@ func (s *Server) ChatHandle(c *gin.Context) {
_, err = GetChatHistory(session.Username, roleKey) _, err = GetChatHistory(session.Username, roleKey)
if err != nil { if err != nil {
replyMessage(client, chatRole.HelloMsg, true) replyMessage(client, chatRole.HelloMsg, true)
// 发送项目地址
replyMessage(client, "本项目已开放全部源代码https://github.com/yangjian102621/chatgpt-plus一分钟搭建自己的 ChatGPT 应用。", false)
} }
go func() { go func() {
for { for {