mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 00:09:01 +08:00
Nick: fixes py sdk
This commit is contained in:
parent
c514d14176
commit
7e7b7e10fe
@ -13,7 +13,7 @@ import os
|
|||||||
|
|
||||||
from .firecrawl import FirecrawlApp # noqa
|
from .firecrawl import FirecrawlApp # noqa
|
||||||
|
|
||||||
__version__ = "1.14.0"
|
__version__ = "1.14.1"
|
||||||
|
|
||||||
# Define the logger for the Firecrawl project
|
# Define the logger for the Firecrawl project
|
||||||
logger: logging.Logger = logging.getLogger("firecrawl")
|
logger: logging.Logger = logging.getLogger("firecrawl")
|
||||||
|
@ -681,6 +681,8 @@ class FirecrawlApp:
|
|||||||
'origin': 'api-sdk'
|
'origin': 'api-sdk'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not request_data['urls']:
|
||||||
|
request_data['urls'] = []
|
||||||
# Only add prompt and systemPrompt if they exist
|
# Only add prompt and systemPrompt if they exist
|
||||||
if params.get('prompt'):
|
if params.get('prompt'):
|
||||||
request_data['prompt'] = params['prompt']
|
request_data['prompt'] = params['prompt']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user