Remove my Key
This commit is contained in:
parent
4acb5476b1
commit
70dfe7e589
2 changed files with 17 additions and 1 deletions
|
|
@ -120,7 +120,7 @@
|
||||||
"web": {
|
"web": {
|
||||||
"search": {
|
"search": {
|
||||||
"provider": "ollama",
|
"provider": "ollama",
|
||||||
"api_key": "77b893700a1d4c8dad9a7326be9a76d6.7pl0DA9ojPa_6UCMMZ_Sk-Cn",
|
"api_key": "Your Ollama API Key",
|
||||||
"endpoint": "https://ollama.com/api/web_search",
|
"endpoint": "https://ollama.com/api/web_search",
|
||||||
"rest_type": "POST",
|
"rest_type": "POST",
|
||||||
"query_param": "query",
|
"query_param": "query",
|
||||||
|
|
|
||||||
|
|
@ -315,6 +315,15 @@ type WebToolsConfig struct {
|
||||||
Search WebSearchConfig `json:"search"`
|
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 {
|
type ToolsConfig struct {
|
||||||
Web WebToolsConfig `json:"web"`
|
Web WebToolsConfig `json:"web"`
|
||||||
Cron CronToolsConfig `json:"cron"`
|
Cron CronToolsConfig `json:"cron"`
|
||||||
|
|
@ -427,6 +436,13 @@ func DefaultConfig() *Config {
|
||||||
MaxResults: 5,
|
MaxResults: 5,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Cron: CronToolsConfig{
|
||||||
|
ExecTimeoutMinutes: 5,
|
||||||
|
},
|
||||||
|
Exec: ExecConfig{
|
||||||
|
EnableDenyPatterns: true,
|
||||||
|
CustomDenyPatterns: []string{},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Heartbeat: HeartbeatConfig{
|
Heartbeat: HeartbeatConfig{
|
||||||
Enabled: true,
|
Enabled: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue