You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
468 B
22 lines
468 B
package tavilysearch_test
|
|
|
|
import (
|
|
|
|
//"lego_bighealth/sys/coze"
|
|
|
|
"context"
|
|
tavily "yunyan/sys/websearch/tavilysearch"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Sys_Chat(t *testing.T) {
|
|
if sys, err := tavily.NewSys(
|
|
tavily.SetApiKey("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"),
|
|
); err != nil {
|
|
fmt.Printf("Sys Init err:%v", err)
|
|
} else {
|
|
result, err := sys.Search(context.Background(), "茅台今日股价?", 5, 5)
|
|
fmt.Printf("result:%v err:%v", result, err)
|
|
}
|
|
}
|
|
|