mirror of
https://github.com/coaidev/coai.git
synced 2025-05-28 17:30:15 +09:00
update
This commit is contained in:
parent
833788a07d
commit
80adbca078
@ -15,7 +15,7 @@ type ChatProps struct {
|
||||
func (c *ChatInstance) CreateStreamChatRequest(props *ChatProps, hook globals.Hook) error {
|
||||
var conn *utils.WebSocket
|
||||
if conn = utils.NewWebsocketClient(c.GetEndpoint()); conn == nil {
|
||||
return fmt.Errorf("sparkdesk error: websocket connection failed")
|
||||
return fmt.Errorf("bing error: websocket connection failed")
|
||||
}
|
||||
defer conn.DeferClose()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user