This commit is contained in:
Timothy Jaeryang Baek
2026-07-27 02:17:16 -04:00
parent 312d8a8e7f
commit 8710c448a9
@@ -28,10 +28,10 @@ def build_firecrawl_url(base_url: str | None, path: str) -> str:
def build_firecrawl_headers(api_key: str | None) -> dict[str, str]:
return {
'Content-Type': 'application/json',
'Authorization': f'Bearer {api_key or ""}',
}
headers = {'Content-Type': 'application/json'}
if api_key:
headers['Authorization'] = f'Bearer {api_key}'
return headers
def get_firecrawl_timeout_seconds(timeout: Any) -> float | None: