mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
Improve Firecrawl configuration error message and add logging
This commit is contained in:
parent
b73d221324
commit
c42a18e9e5
1 changed files with 4 additions and 4 deletions
|
|
@ -105,10 +105,11 @@ def _get_firecrawl_client():
|
|||
api_key = os.getenv("FIRECRAWL_API_KEY")
|
||||
api_url = os.getenv("FIRECRAWL_API_URL")
|
||||
if not api_key and not api_url:
|
||||
logger.error("Firecrawl client initialization failed: missing configuration.")
|
||||
raise ValueError(
|
||||
"FIRECRAWL_API_KEY environment variable not set. "
|
||||
"Set it for cloud Firecrawl, or set FIRECRAWL_API_URL "
|
||||
"to use a self-hosted instance."
|
||||
"Firecrawl client not configured. "
|
||||
"Set FIRECRAWL_API_KEY (cloud) or FIRECRAWL_API_URL (self-hosted). "
|
||||
"This tool requires Firecrawl to be available."
|
||||
)
|
||||
kwargs = {}
|
||||
if api_key:
|
||||
|
|
@ -118,7 +119,6 @@ def _get_firecrawl_client():
|
|||
_firecrawl_client = Firecrawl(**kwargs)
|
||||
return _firecrawl_client
|
||||
|
||||
|
||||
# ─── Parallel Client ─────────────────────────────────────────────────────────
|
||||
|
||||
_parallel_client = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue