Feat (config): chunk limit

This commit is contained in:
Grail Finder
2024-11-30 08:05:03 +03:00
parent 34d415c930
commit 8d3997baff
3 changed files with 13 additions and 14 deletions

View File

@@ -16,6 +16,7 @@ type Config struct {
AssistantIcon string `toml:"AssistantIcon"`
UserIcon string `toml:"UserIcon"`
ToolIcon string `toml:"ToolIcon"`
ChunkLimit uint32 `toml:"ChunkLimit"`
}
func LoadConfigOrDefault(fn string) *Config {
@@ -32,6 +33,7 @@ func LoadConfigOrDefault(fn string) *Config {
config.UserRole = "user"
config.ToolRole = "tool"
config.AssistantRole = "assistant"
config.ChunkLimit = 8192
}
return config
}