textin/config.go
2024-11-03 11:36:46 +08:00

21 lines
314 B
Go

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