mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user