diff --git a/pkg/config/config.go b/pkg/config/config.go index 49a8028c6..9e2ab97de 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -838,13 +838,13 @@ func (c *TavilyConfig) SetAPIKeys(keys []string) { } type DuckDuckGoConfig struct { - Enabled bool `json:"enabled" env:"PICOCLAW_TOOLS_WEB_DUCKDUCKGO_ENABLED"` - MaxResults int `json:"max_results" env:"PICOCLAW_TOOLS_WEB_DUCKDUCKGO_MAX_RESULTS"` + Enabled bool `json:"enabled" yaml:"enabled" env:"PICOCLAW_TOOLS_WEB_DUCKDUCKGO_ENABLED"` + MaxResults int `json:"max_results" yaml:"max_results" env:"PICOCLAW_TOOLS_WEB_DUCKDUCKGO_MAX_RESULTS"` } type SogouConfig struct { - Enabled bool `json:"enabled" env:"PICOCLAW_TOOLS_WEB_SOGOU_ENABLED"` - MaxResults int `json:"max_results" env:"PICOCLAW_TOOLS_WEB_SOGOU_MAX_RESULTS"` + Enabled bool `json:"enabled" yaml:"enabled" env:"PICOCLAW_TOOLS_WEB_SOGOU_ENABLED"` + MaxResults int `json:"max_results" yaml:"max_results" env:"PICOCLAW_TOOLS_WEB_SOGOU_MAX_RESULTS"` } type PerplexityConfig struct { @@ -893,8 +893,8 @@ type WebToolsConfig struct { ToolConfig ` yaml:"-" envPrefix:"PICOCLAW_TOOLS_WEB_"` Brave BraveConfig `yaml:"brave,omitempty" json:"brave"` Tavily TavilyConfig `yaml:"tavily,omitempty" json:"tavily"` - Sogou SogouConfig `yaml:"-" json:"sogou"` - DuckDuckGo DuckDuckGoConfig `yaml:"-" json:"duckduckgo"` + Sogou SogouConfig `yaml:"sogou,omitempty" json:"sogou"` + DuckDuckGo DuckDuckGoConfig `yaml:"duckduckgo,omitempty" json:"duckduckgo"` Perplexity PerplexityConfig `yaml:"perplexity,omitempty" json:"perplexity"` SearXNG SearXNGConfig `yaml:"-" json:"searxng"` GLMSearch GLMSearchConfig `yaml:"glm_search,omitempty" json:"glm_search"` diff --git a/pkg/config/defaults.go b/pkg/config/defaults.go index 588184adf..b96ecbbed 100644 --- a/pkg/config/defaults.go +++ b/pkg/config/defaults.go @@ -338,7 +338,7 @@ func DefaultConfig() *Config { MaxResults: 5, }, DuckDuckGo: DuckDuckGoConfig{ - Enabled: false, + Enabled: true, MaxResults: 5, }, Perplexity: PerplexityConfig{