mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-07 17:53:42 +08:00
opt: close websocket connection when finish a chat call for XunFei API
This commit is contained in:
@@ -150,6 +150,7 @@ func (h *ChatHandler) sendXunFeiMessage(
|
||||
})
|
||||
|
||||
if result.Payload.Choices.Status == 2 { // 最终结果
|
||||
_ = conn.Close() // 关闭连接
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user