feat(firecrawl): add integration tag for Hermes usage in browser and web providers

This commit is contained in:
Erik Engervall 2026-05-19 16:29:29 +02:00 committed by daimon-nous[bot]
parent ae74b15906
commit 273ff5c4a4
2 changed files with 22 additions and 2 deletions

View file

@ -39,6 +39,12 @@ logger = logging.getLogger(__name__)
_BASE_URL = "https://api.firecrawl.dev"
# Integration tag sent on every browser-session create so Firecrawl can
# attribute Hermes usage. Mirrors FIRECRAWL_INTEGRATION_TAG in the web
# plugin; kept here rather than imported to keep the two firecrawl
# plugins import-independent.
FIRECRAWL_INTEGRATION_TAG = "hermes"
class FirecrawlBrowserProvider(BrowserProvider):
"""Firecrawl (https://firecrawl.dev) cloud browser backend.
@ -80,7 +86,10 @@ class FirecrawlBrowserProvider(BrowserProvider):
def create_session(self, task_id: str) -> Dict[str, object]:
ttl = int(os.environ.get("FIRECRAWL_BROWSER_TTL", "300"))
body: Dict[str, object] = {"ttl": ttl}
body: Dict[str, object] = {
"ttl": ttl,
"integration": FIRECRAWL_INTEGRATION_TAG,
}
try:
response = requests.post(