refactor(search): remove the Gemini search backend
The user asked to drop it: nobody had the Gemini CLI login or a key set up, and Exa then Wikipedia cover the voice use. webSearch is now live Chrome, Exa, Brave (opt-in), Wikipedia. Removes the CLI/REST backends, the GEMINI_* settings, the Docker login mount and checks, and updates the specs and docs/llm_contexts.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
"""
|
||||
Regression eval: the provider chain rescues a failed primary search honestly.
|
||||
|
||||
Exa is the primary provider. When it is down or finds nothing (and no Gemini
|
||||
login or key is set up), Wikipedia is the last resort; when that misses too,
|
||||
Exa is the primary provider. When it is down or finds nothing (and no Brave
|
||||
key is set up), Wikipedia is the last resort; when that misses too,
|
||||
an honest "found nothing" envelope forbids facts so the reply LLM cannot
|
||||
confabulate from its priors.
|
||||
|
||||
@@ -28,8 +28,6 @@ def _make_ctx(cfg_overrides=None):
|
||||
cfg.web_search_enabled = True
|
||||
cfg.voice_debug = False
|
||||
cfg.stream_browser = False
|
||||
cfg.gemini_auth = "api_key"
|
||||
cfg.gemini_api_key = ""
|
||||
cfg.brave_search_api_key = ""
|
||||
cfg.wikipedia_fallback_enabled = True
|
||||
for k, v in (cfg_overrides or {}).items():
|
||||
@@ -78,7 +76,7 @@ class TestFallbackChainRescuesFailedSearch:
|
||||
@_exa_down()
|
||||
@patch("jarvis.tools.builtin.web_search._wikipedia_summary", return_value=None)
|
||||
def test_honest_envelope_when_all_providers_fail(self, _wiki, _post):
|
||||
"""Exa down, no Gemini, no Brave key, Wikipedia miss → honest envelope."""
|
||||
"""Exa down, no Brave key, Wikipedia miss → honest envelope."""
|
||||
result = WebSearchTool().run({"search_query": "obscure thing"}, _make_ctx())
|
||||
|
||||
assert result.success is True
|
||||
|
||||
Reference in New Issue
Block a user