update
This commit is contained in:
parent
9cf74df544
commit
a4f9af7e76
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user