This commit is contained in:
HugeFrog24
2026-09-03 21:55:36 +02:00
parent c36e1846f5
commit 89458480f3
17 changed files with 1593 additions and 127 deletions
+6
View File
@@ -67,6 +67,7 @@ type BotConfig struct {
Thinking string `json:"thinking,omitempty"`
ThinkingDisplay string `json:"thinking_display,omitempty"`
DebounceMs int `json:"debounce_ms,omitempty"`
StreamDrafts bool `json:"stream_drafts,omitempty"`
CacheHistory *bool `json:"cache_history,omitempty"`
SystemPrompts map[string]string `json:"system_prompts"`
Active bool `json:"active"`
@@ -172,6 +173,11 @@ func logConfigAdvisories(config *BotConfig) {
config.ID)
}
if config.StreamDrafts {
InfoLogger.Printf("[%s] draft streaming enabled: private chats get one growing draft with a Stop button; business and group chats keep per-block messages",
config.ID)
}
if ws := config.WebSearch; ws != nil && len(ws.AllowedDomains) == 0 && len(ws.BlockedDomains) == 0 {
InfoLogger.Printf("[%s] web_search enabled with no allowed_domains/blocked_domains: the model may search the open web",
config.ID)