fix bug
This commit is contained in:
parent
c80767c59f
commit
52b066524f
@ -115,6 +115,8 @@ func Completions(msg string) (*string, error) {
|
|||||||
reply = v["text"].(string)
|
reply = v["text"].(string)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
replay = v["error"]["message"].(string)
|
||||||
}
|
}
|
||||||
log.Printf("gpt response text: %s \n", reply)
|
log.Printf("gpt response text: %s \n", reply)
|
||||||
result := strings.TrimSpace(reply)
|
result := strings.TrimSpace(reply)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user