Fix python sdk for extract
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user