Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Nick: fix py sdk validation error
Nicolasb05327dbbecd
diff --git a/apps/python-sdk/firecrawl/__init__.py b/apps/python-sdk/firecrawl/__init__.pyindex 55e843736..35b3983dc 100644--- a/apps/python-sdk/firecrawl/__init__.py+++ b/apps/python-sdk/firecrawl/__init__.py@@ -17,7 +17,7 @@ from .v1 import (V1ChangeTrackingOptions,)-__version__ = "4.1.0"+__version__ = "4.1.1"# Define the logger for the Firecrawl projectlogger: logging.Logger = logging.getLogger("firecrawl")diff --git a/apps/python-sdk/firecrawl/v2/types.py b/apps/python-sdk/firecrawl/v2/types.pyindex 411295d8e..2a56be41a 100644--- a/apps/python-sdk/firecrawl/v2/types.py+++ b/apps/python-sdk/firecrawl/v2/types.py@@ -599,25 +599,7 @@ class SearchRequest(BaseModel):return normalized_categories- @field_validator('parsers')- @classmethod- def validate_parsers(cls, v):- """Validate and normalize parsers input."""- if v is None:- return v-- normalized_parsers = []- for parser in v:- if isinstance(parser, str):- normalized_parsers.append(parser)- elif isinstance(parser, dict):- normalized_parsers.append(PDFParser(**parser))- elif isinstance(parser, PDFParser):- normalized_parsers.append(parser)- else:- raise ValueError(f"Invalid parser format: {parser}")-- return normalized_parsers+ # NOTE: parsers validation does not belong on SearchRequest; it is part of ScrapeOptions.class LinkResult(BaseModel):"""A generic link result with optional metadata (used by search and map)."""