feat(web): support TAVILY_BASE_URL env var for custom proxy endpoints

Make Tavily client respect a TAVILY_BASE_URL environment variable,
defaulting to https://api.tavily.com for backward compatibility.
Consistent with FIRECRAWL_API_URL pattern already used in this module.
This commit is contained in:
niyoh 2026-04-13 22:47:24 +08:00 committed by Teknium
parent ea83cd91e4
commit 3445530dbf

View file

@ -282,7 +282,7 @@ def _get_async_parallel_client():
# ─── Tavily Client ─────────────────────────────────────────────────────────── # ─── Tavily Client ───────────────────────────────────────────────────────────
_TAVILY_BASE_URL = "https://api.tavily.com" _TAVILY_BASE_URL = os.getenv("TAVILY_BASE_URL", "https://api.tavily.com")
def _tavily_request(endpoint: str, payload: dict) -> dict: def _tavily_request(endpoint: str, payload: dict) -> dict: