mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #13177] [MERGED] fix: FireCrawlLoader default mode to scrape #46172
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13177
Author: @tth37
Created: 4/23/2025
Status: ✅ Merged
Merged: 4/29/2025
Merged by: @tjbck
Base:
dev← Head:fix_firecrawl_loader_default_mode📝 Commits (1)
8f7195cfix: FireCrawlLoader default mode to scrape📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/retrieval/web/utils.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Hi, after
09874ab83d, the FireCrawlLoader's source URLs are now correctly handled!However, there’s still a small point to address. I strongly recommend changing FireCrawlLoader's default mode to
'scrape'. The'scrape'mode focuses on fetching a single URL, which is consistent with the behavior of other web loaders. In contrast, selecting'crawl'mode—particularly when using a self-hosted Firecrawl instance—can result in Firecrawl recursively fetching all linked pages from the given URL, leading to unacceptably long processing times for just one webpage.Update: same concern was mentioned in #13169
Changed
backend/open_webui/retrieval/web/utils.py:SafeFireCrawlLoader.__init__set default mode toscrapeContributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.