update
This commit is contained in:
parent
8a49b21ace
commit
bf342ff027
@ -8,7 +8,6 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"wechatbot/config"
|
"wechatbot/config"
|
||||||
|
|
||||||
@ -137,6 +136,5 @@ func Completions(msg string) (*string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf("gpt response full text: %s \n", reply)
|
log.Debugf("gpt response full text: %s \n", reply)
|
||||||
result := strings.TrimSpace(reply)
|
return &reply, nil
|
||||||
return &result, nil
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user