Fix python sdk for extract

This commit is contained in:
Eric Ciarla 2025-01-18 17:12:06 -03:00
parent 3363b2d60e
commit 6383bf270a

View File

@ -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: