mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-10-20 05:15:31 +00:00
fix: add web_backend handling to _reconfigure_provider for Tavily
Same fix as the Parallel PR — _reconfigure_provider() was missing the web_backend config save, so switching backends via Reconfigure didn't persist web.backend to config.yaml.
This commit is contained in:
parent
a0e4cea2b4
commit
33a9f69ce2
1 changed files with 5 additions and 0 deletions
|
|
@ -859,6 +859,11 @@ def _reconfigure_provider(provider: dict, config: dict):
|
|||
config.get("browser", {}).pop("cloud_provider", None)
|
||||
_print_success(f" Browser set to local mode")
|
||||
|
||||
# Set web search backend in config if applicable
|
||||
if provider.get("web_backend"):
|
||||
config.setdefault("web", {})["backend"] = provider["web_backend"]
|
||||
_print_success(f" Web backend set to: {provider['web_backend']}")
|
||||
|
||||
if not env_vars:
|
||||
_print_success(f" {provider['name']} - no configuration needed!")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue