Chore: config update

This commit is contained in:
Grail Finder
2025-11-21 11:17:00 +03:00
parent 7ee2a87b49
commit 866a74e459
3 changed files with 10 additions and 87 deletions

8
bot.go
View File

@@ -545,7 +545,13 @@ func charToStart(agentName string) bool {
}
func init() {
cfg = config.LoadConfigOrDefault("config.toml")
var err error
cfg, err = config.LoadConfig("config.toml")
if err != nil {
fmt.Println("failed to load config.toml")
os.Exit(1)
return
}
defaultStarter = []models.RoleMsg{
{Role: "system", Content: basicSysMsg},
{Role: cfg.AssistantRole, Content: defaultFirstMsg},