package lib import ( "log" "testing" ) func TestAskGPT(t *testing.T) { res, err := AskGPT("https://api.xi-ai.cn/v1", "sk-HwHHZ7yVv3qZdf4n6849030647364328B0F03f9415B97023", "", "1", "你好") log.Println(res, err) }