Skip to content

Commit b62eb61

Browse files
authored
fix depth param issue for WaterCrawl (#18839)
1 parent 0a20210 commit b62eb61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/core/rag/extractor/watercrawl/provider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def crawl_url(self, url, options: dict | Any = None) -> dict:
2020
}
2121
if options.get("crawl_sub_pages", True):
2222
spider_options["page_limit"] = options.get("limit", 1)
23-
spider_options["max_depth"] = options.get("depth", 1)
23+
spider_options["max_depth"] = options.get("max_depth", 1)
2424
spider_options["include_paths"] = options.get("includes", "").split(",") if options.get("includes") else []
2525
spider_options["exclude_paths"] = options.get("excludes", "").split(",") if options.get("excludes") else []
2626

0 commit comments

Comments
 (0)