Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Nick: fixes
Nicolas4902d0ac64d6
diff --git a/apps/python-sdk/firecrawl/__init__.py b/apps/python-sdk/firecrawl/__init__.pyindex 1b52e0c11..273fc1a6f 100644--- a/apps/python-sdk/firecrawl/__init__.py+++ b/apps/python-sdk/firecrawl/__init__.py@@ -13,7 +13,7 @@ import osfrom .firecrawl import FirecrawlApp # noqa-__version__ = "1.13.3"+__version__ = "1.13.5"# Define the logger for the Firecrawl projectlogger: logging.Logger = logging.getLogger("firecrawl")diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.pyindex 6b04d09b8..d79b174c9 100644--- a/apps/python-sdk/firecrawl/firecrawl.py+++ b/apps/python-sdk/firecrawl/firecrawl.py@@ -669,17 +669,23 @@ class FirecrawlApp:schema = schema.model_json_schema()# Otherwise assume it's already a JSON schema dict- jsonData = {'urls': urls, **params}request_data = {- **jsonData,+ 'urls': urls,'allowExternalLinks': params.get('allow_external_links', params.get('allowExternalLinks', False)),- 'enableWebSearch': params.get('enable_web_search', params.get('enableWebSearch', False)),+ 'enableWebSearch': params.get('enable_web_search', params.get('enableWebSearch', False)),'showSources': params.get('show_sources', params.get('showSources', False)),- 'systemPrompt': params.get('system_prompt', params.get('systemPrompt', None)),'schema': schema,'origin': 'api-sdk'}+ # Only add prompt and systemPrompt if they exist+ if params.get('prompt'):+ request_data['prompt'] = params['prompt']+ if params.get('system_prompt'):+ request_data['systemPrompt'] = params['system_prompt']+ elif params.get('systemPrompt'): # Check legacy field name+ request_data['systemPrompt'] = params['systemPrompt']+try:# Send the initial extract requestresponse = self._post_request(