mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 00:36:25 +08:00
Fix python sdk for extract
This commit is contained in:
parent
3363b2d60e
commit
6383bf270a
@ -599,8 +599,8 @@ class FirecrawlApp:
|
||||
"""
|
||||
headers = self._prepare_headers()
|
||||
|
||||
#if not params or not params.get('prompt'):
|
||||
# raise ValueError("Prompt is required")
|
||||
if not params or (not params.get('prompt') and not params.get('schema')):
|
||||
raise ValueError("Either prompt or schema is required")
|
||||
|
||||
schema = params.get('schema')
|
||||
if schema:
|
||||
|
Loading…
x
Reference in New Issue
Block a user