Skip to content

Commit

Permalink
update type
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Oct 15, 2023
1 parent eed65ad commit 084c643
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ chat.AskStream(&chatnio.ChatRequestForm{
})

// or using channel
channel := make(chan ChatPartialResponse)
chat.Ask(&ChatRequestForm{
channel := make(chan chatnio.ChatPartialResponse)
chat.Ask(&chatnio.ChatRequestForm{
Message: "hello",
Model: "gpt-3.5-turbo",
}, channel)

for resp := range channel {
// do something
}
Expand Down

0 comments on commit 084c643

Please sign in to comment.