This commit is contained in:
Ubuntu 2023-02-24 19:59:34 +08:00
parent 8a49b21ace
commit bf342ff027

View File

@ -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
}