From 084c6433724aecb8f2f0170c53ebf428160ec61b Mon Sep 17 00:00:00 2001 From: Zhang Minghan Date: Sun, 15 Oct 2023 08:49:43 +0800 Subject: [PATCH] update type --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0d4b146..9a9df7d 100644 --- a/README.md +++ b/README.md @@ -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 }