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: firecrawl apikey not start with fc- (#5498)

Joel3bbd75f1f255
diff --git a/web/app/components/header/account-setting/data-source-page/data-source-website/config-firecrawl-modal.tsx b/web/app/components/header/account-setting/data-source-page/data-source-website/config-firecrawl-modal.tsx
index 4e196b87a86..d68fc79b0d5 100644
--- a/web/app/components/header/account-setting/data-source-page/data-source-website/config-firecrawl-modal.tsx
+++ b/web/app/components/header/account-setting/data-source-page/data-source-website/config-firecrawl-modal.tsx
@@ -51,9 +51,6 @@ const ConfigFirecrawlModal: FC<Props> = ({
field: 'API Key',
})
}
- else if (!config.api_key.startsWith('fc-')) {
- errorMsg = t(`${I18N_PREFIX}.apiKeyFormatError`)
- }
}
if (errorMsg) {
diff --git a/web/i18n/en-US/dataset-creation.ts b/web/i18n/en-US/dataset-creation.ts
index cd7cd59857b..b2090c33395 100644
--- a/web/i18n/en-US/dataset-creation.ts
+++ b/web/i18n/en-US/dataset-creation.ts
@@ -13,8 +13,7 @@ const translation = {
},
firecrawl: {
configFirecrawl: 'Configure 🔥Firecrawl',
- apiKeyPlaceholder: 'API key from firecrawl.dev, starting with "fc-"',
- apiKeyFormatError: 'API key should start with "fc-"',
+ apiKeyPlaceholder: 'API key from firecrawl.dev',
getApiKeyLinkText: 'Get your API key from firecrawl.dev',
},
stepOne: {
diff --git a/web/i18n/hi-IN/dataset-creation.ts b/web/i18n/hi-IN/dataset-creation.ts
index 9e0ae6e60f6..59913c71ea6 100644
--- a/web/i18n/hi-IN/dataset-creation.ts
+++ b/web/i18n/hi-IN/dataset-creation.ts
@@ -13,8 +13,7 @@ const translation = {
},
firecrawl: {
configFirecrawl: '🔥फायरक्रॉल को कॉन्फ़िगर करें',
- apiKeyPlaceholder: 'firecrawl.dev से API कुंजी, "fc-" से शुरू होती है',
- apiKeyFormatError: 'API कुंजी "fc-" से शुरू होनी चाहिए',
+ apiKeyPlaceholder: 'firecrawl.dev से API कुंजी',
getApiKeyLinkText: 'firecrawl.dev से अपनी API कुंजी प्राप्त करें',
},
stepOne: {
diff --git a/web/i18n/zh-Hans/dataset-creation.ts b/web/i18n/zh-Hans/dataset-creation.ts
index 5ae5b1d38d9..26e29fcbbbb 100644
--- a/web/i18n/zh-Hans/dataset-creation.ts
+++ b/web/i18n/zh-Hans/dataset-creation.ts
@@ -13,8 +13,7 @@ const translation = {
},
firecrawl: {
configFirecrawl: '配置 🔥Firecrawl',
- apiKeyPlaceholder: '从 firecrawl.dev 获取 API Key,以 "fc-" 开头',
- apiKeyFormatError: 'API Key 应以 "fc-" 开头',
+ apiKeyPlaceholder: '从 firecrawl.dev 获取 API Key',
getApiKeyLinkText: '从 firecrawl.dev 获取您的 API Key',
},
stepOne: {