This commit is contained in:
Ubuntu 2023-02-13 23:39:18 +08:00
parent 9cf74df544
commit a4f9af7e76

View File

@ -126,7 +126,7 @@ func Completions(msg string) (*string, error) {
} else { } else {
reply = gptErrorBody.Error["message"].(string) reply = gptErrorBody.Error["message"].(string)
} }
log.Printf("gpt response text: %s \n", reply) log.Printf("gpt response full text: %s \n", reply)
result := strings.TrimSpace(reply) result := strings.TrimSpace(reply)
return &result, nil return &result, nil
} }