diff --git a/web/src/components/tavily-item.tsx b/web/src/components/tavily-item.tsx
new file mode 100644
index 000000000..a457dd2fe
--- /dev/null
+++ b/web/src/components/tavily-item.tsx
@@ -0,0 +1,25 @@
+import { useTranslate } from '@/hooks/common-hooks';
+import { Form, Input, Typography } from 'antd';
+
+interface IProps {
+ name?: string | string[];
+}
+
+export function TavilyItem({
+ name = ['prompt_config', 'tavily_api_key'],
+}: IProps) {
+ const { t } = useTranslate('chat');
+
+ return (
+
+
+
+
+
+
+ {t('tavilyApiKeyHelp')}
+
+
+
+ );
+}
diff --git a/web/src/components/use-knowledge-graph-item.tsx b/web/src/components/use-knowledge-graph-item.tsx
index 5cf891475..cebf576ca 100644
--- a/web/src/components/use-knowledge-graph-item.tsx
+++ b/web/src/components/use-knowledge-graph-item.tsx
@@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next';
import { SwitchFormField } from './switch-fom-field';
type IProps = {
- filedName: string[];
+ filedName: string[] | string;
};
export function UseKnowledgeGraphItem({ filedName }: IProps) {
diff --git a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx
index 039a2e583..69a5b2c7b 100644
--- a/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx
+++ b/web/src/pages/chat/chat-configuration-modal/assistant-setting.tsx
@@ -1,8 +1,9 @@
import KnowledgeBaseItem from '@/components/knowledge-base-item';
+import { TavilyItem } from '@/components/tavily-item';
import { useTranslate } from '@/hooks/common-hooks';
import { useFetchTenantInfo } from '@/hooks/user-setting-hooks';
import { PlusOutlined } from '@ant-design/icons';
-import { Form, Input, message, Select, Switch, Typography, Upload } from 'antd';
+import { Form, Input, message, Select, Switch, Upload } from 'antd';
import classNames from 'classnames';
import { useCallback } from 'react';
import { ISegmentedContentProps } from '../interface';
@@ -147,16 +148,7 @@ const AssistantSetting = ({
>
-
-
-
-
-
-
- {t('tavilyApiKeyHelp')}
-
-
-
+
{
>
+
+