瀏覽代碼

Merge branch 'feature/deepseek_rag_1.0' into debug

kobe6258 3 周之前
父節點
當前提交
0c692b882f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      utils/ws/session_manager.go

+ 1 - 0
utils/ws/session_manager.go

@@ -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