fix(config): add missing Tavily default config in defaults.go

The TavilyConfig struct has BaseURL field, but the default config in
defaults.go was missing the entire Tavily configuration. This adds the
complete default config for Tavily with all fields initialized to their
zero values.
This commit is contained in:
王璐瑶 2026-02-24 11:37:11 +08:00
parent 7cbfa89a96
commit 144149efaa

View file

@ -286,6 +286,12 @@ func DefaultConfig() *Config {
Enabled: true, Enabled: true,
MaxResults: 5, MaxResults: 5,
}, },
Tavily: TavilyConfig{
Enabled: false,
APIKey: "",
BaseURL: "",
MaxResults: 5,
},
Perplexity: PerplexityConfig{ Perplexity: PerplexityConfig{
Enabled: false, Enabled: false,
APIKey: "", APIKey: "",