huoshan/config.go

35 lines
755 B
Go
Raw Normal View History

2024-10-31 15:31:37 +08:00
package huoshan
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("huoshan", &ai.Agent{
ChatConfigs: defaultConf.Chat,
EmbeddingConfigs: defaultConf.Embedding,
ImageConfigs: defaultConf.Image,
VideoConfigs: defaultConf.Video,
2024-11-03 11:36:02 +08:00
EditConfigs: defaultConf.Edit,
AsrConfigs: defaultConf.Asr,
TtsConfigs: defaultConf.Tts,
2024-10-31 15:31:37 +08:00
Chat: Chat,
Embedding: Embedding,
MakeImage: MakeImage,
// MakeVideo: MakeVideo,
// GetVideoResult: GetVideoResult,
2024-11-03 11:36:02 +08:00
Edit: Edit,
// Scan: Scan,
// Asr: Asr,
// Tts: Tts,
2024-10-31 15:31:37 +08:00
})
}