wechatbot/gpt/gpt_test.go
2023-04-15 15:09:10 +08:00

15 lines
210 B
Go

package gpt
import (
"fmt"
"testing"
)
func TestGpt(t *testing.T) {
reply, err := Completions("今天北京的天气怎么样", "nickname")
if err != nil {
t.Error(err)
}
fmt.Printf("%+v\n", reply)
}