textin/config.go

21 lines
314 B
Go
Raw Normal View History

2024-11-03 11:36:46 +08:00
package textin
import (
_ "embed"
"apigo.cc/ai"
"github.com/ssgo/u"
)
//go:embed default.yml
var defaultYml string
func init() {
defaultConf := ai.AILoadConfig{}
u.Convert(u.UnYamlMap(defaultYml), &defaultConf)
ai.Register("textin", &ai.Agent{
ScanConfigs: defaultConf.Scan,
Scan: Scan,
})
}