Feat: add character card support

This commit is contained in:
Grail Finder
2024-12-02 19:58:03 +03:00
parent 8d3997baff
commit a5ab816c94
15 changed files with 346 additions and 37 deletions

View File

@@ -17,6 +17,7 @@ type Config struct {
UserIcon string `toml:"UserIcon"`
ToolIcon string `toml:"ToolIcon"`
ChunkLimit uint32 `toml:"ChunkLimit"`
SysDir string `toml:"SysDir"`
}
func LoadConfigOrDefault(fn string) *Config {
@@ -34,6 +35,7 @@ func LoadConfigOrDefault(fn string) *Config {
config.ToolRole = "tool"
config.AssistantRole = "assistant"
config.ChunkLimit = 8192
config.SysDir = "sysprompts"
}
return config
}