refac
This commit is contained in:
1 parent
312d8a8e7f
commit
8710c448a9
1 file changed
+4
-4
@@ -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]:
|
def build_firecrawl_headers(api_key: str | None) -> dict[str, str]:
|
||||||
return {
|
headers = {'Content-Type': 'application/json'}
|
||||||
'Content-Type': 'application/json',
|
if api_key:
|
||||||
'Authorization': f'Bearer {api_key or ""}',
|
headers['Authorization'] = f'Bearer {api_key}'
|
||||||
}
|
return headers
|
||||||
|
|
||||||
|
|
||||||
def get_firecrawl_timeout_seconds(timeout: Any) -> float | None:
|
def get_firecrawl_timeout_seconds(timeout: Any) -> float | None:
|
||||||
|
|||||||
Reference in new issue
Block a user