From 70dfe7e5890e0c508f5620894797be21ac6039e8 Mon Sep 17 00:00:00 2001 From: PhotoPortfolio Developer Date: Thu, 19 Feb 2026 22:07:21 +0800 Subject: [PATCH] Remove my Key --- config/config.example.json | 2 +- pkg/config/config.go | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/config/config.example.json b/config/config.example.json index cd234cfaf..17c0abcc7 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -120,7 +120,7 @@ "web": { "search": { "provider": "ollama", - "api_key": "77b893700a1d4c8dad9a7326be9a76d6.7pl0DA9ojPa_6UCMMZ_Sk-Cn", + "api_key": "Your Ollama API Key", "endpoint": "https://ollama.com/api/web_search", "rest_type": "POST", "query_param": "query", diff --git a/pkg/config/config.go b/pkg/config/config.go index 80b23915f..a83f92ee3 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -315,6 +315,15 @@ type WebToolsConfig struct { Search WebSearchConfig `json:"search"` } +type CronToolsConfig struct { + ExecTimeoutMinutes int `json:"exec_timeout_minutes" env:"PICOCLAW_TOOLS_CRON_EXEC_TIMEOUT_MINUTES"` +} + +type ExecConfig struct { + EnableDenyPatterns bool `json:"enable_deny_patterns" env:"PICOCLAW_TOOLS_EXEC_ENABLE_DENY_PATTERNS"` + CustomDenyPatterns []string `json:"custom_deny_patterns,omitempty"` +} + type ToolsConfig struct { Web WebToolsConfig `json:"web"` Cron CronToolsConfig `json:"cron"` @@ -427,6 +436,13 @@ func DefaultConfig() *Config { MaxResults: 5, }, }, + Cron: CronToolsConfig{ + ExecTimeoutMinutes: 5, + }, + Exec: ExecConfig{ + EnableDenyPatterns: true, + CustomDenyPatterns: []string{}, + }, }, Heartbeat: HeartbeatConfig{ Enabled: true,