mirror of
https://gitee.com/blackfox/geekai.git
synced 2024-12-05 05:37:41 +08:00
删除无效注释
This commit is contained in:
parent
676457f350
commit
3a859a51fb
@ -61,18 +61,18 @@ func (s *Server) ChatHandle(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
logger.Info("Receive a message: ", string(message))
|
logger.Info("Receive a message: ", string(message))
|
||||||
replyMessage(client, "当前 TOKEN 无效,请使用合法的 TOKEN 登录!", false)
|
//replyMessage(client, "当前 TOKEN 无效,请使用合法的 TOKEN 登录!", false)
|
||||||
replyMessage(client, "![](images/wx.png)", true)
|
//replyMessage(client, "![](images/wx.png)", true)
|
||||||
//ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
//s.ReqCancelFunc[sessionId] = cancel
|
s.ReqCancelFunc[sessionId] = cancel
|
||||||
//// 回复消息
|
// 回复消息
|
||||||
//err = s.sendMessage(ctx, session, chatRole, string(message), client, false)
|
err = s.sendMessage(ctx, session, chatRole, string(message), client, false)
|
||||||
//if err != nil {
|
if err != nil {
|
||||||
// logger.Error(err)
|
logger.Error(err)
|
||||||
//} else {
|
} else {
|
||||||
// replyChunkMessage(client, types.WsMessage{Type: types.WsEnd, IsHelloMsg: false})
|
replyChunkMessage(client, types.WsMessage{Type: types.WsEnd, IsHelloMsg: false})
|
||||||
// logger.Info("回答完毕: " + string(message))
|
logger.Info("回答完毕: " + string(message))
|
||||||
//}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user