kefu/lib/coze_test.go

14 lines
338 B
Go
Raw Permalink Normal View History

2024-12-10 02:50:12 +00:00
package lib
import "testing"
func TestCoze(t *testing.T) {
coze := &Coze{
BOT_ID: "7374670956696469544",
API_KEY: "pat_NZbW2oAo71c7Vx2FdQAlNzoAPuonVnMeBDnB9Mo8NN9yotjmVavqU5XKy8BRS10v",
}
history := make([]CozeCompletionMessage, 0)
resp, _ := coze.ChatCoze("29032201862555", "29032201862555", "你好", history)
print(resp)
}