Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fixes schema warning

rafaelmmillerd8847bb4ceb6
diff --git a/apps/python-sdk/example.py b/apps/python-sdk/example.py
index 686b76763..fb9601871 100644
--- a/apps/python-sdk/example.py
+++ b/apps/python-sdk/example.py
@@ -59,7 +59,7 @@ class ArticleSchema(BaseModel):
commentsURL: str
class TopArticlesSchema(BaseModel):
- top: List[ArticleSchema] = Field(..., max_items=5, description="Top 5 stories")
+ top: List[ArticleSchema] = Field(..., description="Top 5 stories")
llm_extraction_result = app.scrape_url('https://news.ycombinator.com', {
'formats': ['extract'],
diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.py
index 591307843..45ed27d88 100644
--- a/apps/python-sdk/firecrawl/firecrawl.py
+++ b/apps/python-sdk/firecrawl/firecrawl.py
@@ -27,7 +27,7 @@ class FirecrawlApp:
Parameters for the extract operation.
"""
prompt: str
- schema: Optional[Any] = None
+ schema_: Optional[Any] = pydantic.Field(None, alias='schema')
system_prompt: Optional[str] = None
allow_external_links: Optional[bool] = False