Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Oct 31, 2023
1 parent aadb9f6 commit 9423edb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ func (c *Chat) AskStream(form *ChatRequestForm, callback func(ChatPartialRespons
c.SendAuthRequest()
}

c.Send(form)
c.Send(map[string]interface{}{
"type": "chat",
"message": form.Message,
"model": form.Model,
"web": form.Web,
})

for {
form := utils.ReadForm[ChatPartialResponse](c.Conn)
if form == nil {
Expand Down

0 comments on commit 9423edb

Please sign in to comment.