diff --git a/README.md b/README.md index 0a45b5a..b69b782 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ -# chatgpt - -> chartgpt client for golang - +# chatgpt(use gpt3) +**Note**: Since openai released the api for chatgpt, it means that this repository is no longer of any practical use. If you wish to find a suitable package, you may consider this repository:https://github.com/sashabaranov/go-openai ## Usege Download the package first: diff --git a/chatgpt.go b/chatgpt.go index 2363445..25c5d87 100644 --- a/chatgpt.go +++ b/chatgpt.go @@ -48,6 +48,7 @@ func New(ApiKey, UserId string, timeOut time.Duration) *ChatGPT { ChatContext: NewContext(), } } + func (c *ChatGPT) Close() { c.cancel() }