From ed9c5862364f2a9958cc116271ae9b65f761fe10 Mon Sep 17 00:00:00 2001 From: JiangNan <1394485448@qq.com> Date: Sun, 8 Mar 2026 12:54:18 +0800 Subject: [PATCH] fix: pass user_query to parent class in PruningContentFilter constructor Signed-off-by: JiangNan <1394485448@qq.com> --- crawl4ai/content_filter_strategy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl4ai/content_filter_strategy.py b/crawl4ai/content_filter_strategy.py index 50baed276..01750bf53 100644 --- a/crawl4ai/content_filter_strategy.py +++ b/crawl4ai/content_filter_strategy.py @@ -571,7 +571,7 @@ def __init__( threshold_type (str): Threshold type for dynamic threshold (default: 'fixed'). threshold (float): Fixed threshold value (default: 0.48). """ - super().__init__(None) + super().__init__(user_query=user_query) self.min_word_threshold = min_word_threshold self.threshold_type = threshold_type self.threshold = threshold @@ -823,7 +823,7 @@ def __init__( api_base: Optional[str] = None, extra_args: Dict = None, ): - super().__init__(None) + super().__init__(user_query=user_query) self.provider = provider self.api_token = api_token self.base_url = base_url or api_base