|
@@ -67,6 +67,7 @@ func (manager *ConnectionManager) HandleMessage(userID int, sessionID string, me
|
|
|
return nil
|
|
|
}
|
|
|
if !Allow(userID, QA_LIMITER) {
|
|
|
+ _ = session.Conn.WriteMessage(websocket.TextMessage, []byte("<think></think>"))
|
|
|
_ = session.Conn.WriteMessage(websocket.TextMessage, []byte("您提问的太频繁了,请稍后再试"))
|
|
|
_ = session.Conn.WriteMessage(websocket.TextMessage, []byte("<EOF/>"))
|
|
|
return nil
|