mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 07:05:57 +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()
|
headers = self._prepare_headers()
|
||||||
|
|
||||||
#if not params or not params.get('prompt'):
|
if not params or (not params.get('prompt') and not params.get('schema')):
|
||||||
# raise ValueError("Prompt is required")
|
raise ValueError("Either prompt or schema is required")
|
||||||
|
|
||||||
schema = params.get('schema')
|
schema = params.get('schema')
|
||||||
if schema:
|
if schema:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user