From bf342ff02772b2c0779563d9ae8a2c6ac789733f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 24 Feb 2023 19:59:34 +0800 Subject: [PATCH] update --- openai/chatgpt.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openai/chatgpt.go b/openai/chatgpt.go index 42b1d97..2f3e66d 100644 --- a/openai/chatgpt.go +++ b/openai/chatgpt.go @@ -8,7 +8,6 @@ import ( "io" "io/ioutil" "net/http" - "strings" "wechatbot/config" @@ -137,6 +136,5 @@ func Completions(msg string) (*string, error) { } log.Debugf("gpt response full text: %s \n", reply) - result := strings.TrimSpace(reply) - return &result, nil + return &reply, nil }