This commit is contained in:
Ubuntu 2023-02-13 23:06:35 +08:00
parent c80767c59f
commit 52b066524f

View File

@ -115,6 +115,8 @@ func Completions(msg string) (*string, error) {
reply = v["text"].(string)
break
}
} else {
replay = v["error"]["message"].(string)
}
log.Printf("gpt response text: %s \n", reply)
result := strings.TrimSpace(reply)