Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: Remove invalid key from firecrawl request payload. (#25190)

Yoshio Sugiyama4966e4e1fbc8
diff --git a/api/core/rag/extractor/firecrawl/firecrawl_app.py b/api/core/rag/extractor/firecrawl/firecrawl_app.py
index 83a4ac651f4..fd60af0f1ca 100644
--- a/api/core/rag/extractor/firecrawl/firecrawl_app.py
+++ b/api/core/rag/extractor/firecrawl/firecrawl_app.py
@@ -22,7 +22,6 @@ class FirecrawlApp:
"formats": ["markdown"],
"onlyMainContent": True,
"timeout": 30000,
- "integration": "dify",
}
if params:
json_data.update(params)
@@ -40,7 +39,7 @@ class FirecrawlApp:
def crawl_url(self, url, params=None) -> str:
# Documentation: https://docs.firecrawl.dev/api-reference/endpoint/crawl-post
headers = self._prepare_headers()
- json_data = {"url": url, "integration": "dify"}
+ json_data = {"url": url}
if params:
json_data.update(params)
response = self._post_request(f"{self.base_url}/v1/crawl", json_data, headers)
@@ -138,7 +137,6 @@ class FirecrawlApp:
"timeout": 60000,
"ignoreInvalidURLs": False,
"scrapeOptions": {},
- "integration": "dify",
}
if params:
json_data.update(params)