Pārlūkot izejas kodu

fix: firecrawl apikey not start with fc- (#5498)

Joel 10 mēneši atpakaļ
vecāks
revīzija
3bbd75f1f2

+ 0 - 3
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) {

+ 1 - 2
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: {

+ 1 - 2
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: {

+ 1 - 2
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: {