This commit is contained in:
Ubuntu 2023-02-13 23:22:43 +08:00
parent 66da120775
commit 9cf74df544

View File

@ -107,7 +107,7 @@ func Completions(msg string) (*string, error) {
}
gptResponseBody := &ChatGPTResponseBody{}
gptErrorBody := &ChatGPTErrorBodyP{}
gptErrorBody := &ChatGPTErrorBody{}
log.Println(string(body))
err = json.Unmarshal(body, gptResponseBody)
if err != nil {