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) }