mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-12-24 21:54:33 +00:00
fixes schema warning
This commit is contained in:
parent
f007f2439e
commit
d8847bb4ce
@ -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'],
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user