summaryrefslogtreecommitdiff
path: root/config/config.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-11-30 08:05:03 +0300
committerGrail Finder <wohilas@gmail.com>2024-11-30 08:05:03 +0300
commit8d3997baff25f28c23441699be7692f853cf1f0f (patch)
tree0f3d394953d46f287f06b0960ba77b94a85549e4 /config/config.go
parent34d415c9308f2d089520c2a193cdf8393dcc6b5d (diff)
Feat (config): chunk limit
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 27f8c66..7b6cfc0 100644
--- a/config/config.go
+++ b/config/config.go
@@ -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
}