Skip to content

Commit

Permalink
Fix python sdk for extract
Browse files Browse the repository at this point in the history
  • Loading branch information
ericciarla committed Jan 18, 2025
1 parent 3363b2d commit 6383bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/python-sdk/firecrawl/firecrawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,8 @@ def extract(self, urls: List[str], params: Optional[ExtractParams] = None) -> An
"""
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:
Expand Down

0 comments on commit 6383bf2

Please sign in to comment.