From 8d3997baff25f28c23441699be7692f853cf1f0f Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 30 Nov 2024 08:05:03 +0300 Subject: Feat (config): chunk limit --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') 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 } -- cgit v1.2.3