diff --git a/web/components/chart/index.tsx b/web/components/chart/index.tsx index 7a681d099..d377e1d25 100644 --- a/web/components/chart/index.tsx +++ b/web/components/chart/index.tsx @@ -10,7 +10,6 @@ type Props = { }; function Chart({ chartsData }: Props) { - console.log(chartsData, 'xxx'); const chartRows = useMemo(() => { if (chartsData) { const res = []; diff --git a/web/components/chat/chat-container.tsx b/web/components/chat/chat-container.tsx index 2ab37988d..3a21819f7 100644 --- a/web/components/chat/chat-container.tsx +++ b/web/components/chat/chat-container.tsx @@ -34,7 +34,6 @@ const ChatContainer = () => { if (contextTemp) { try { const contextObj = typeof contextTemp === 'string' ? JSON.parse(contextTemp) : contextTemp; - console.log('contextObj', contextObj); setChartsData(contextObj?.template_name === 'report' ? contextObj?.charts : undefined); } catch (e) { console.log(e); diff --git a/web/components/chat/chat-default/index.tsx b/web/components/chat/chat-default/index.tsx index 483f570d9..9ff148674 100644 --- a/web/components/chat/chat-default/index.tsx +++ b/web/components/chat/chat-default/index.tsx @@ -61,7 +61,6 @@ function Default() { onSuccess: res => { const [_, data] = res; if (activeKey === 'recommend') { - console.log(data); return setApps({ app_list: data, total_count: data?.length || 0, diff --git a/web/components/chat/chat-feedback.tsx b/web/components/chat/chat-feedback.tsx index 1d3dee67f..762088326 100644 --- a/web/components/chat/chat-feedback.tsx +++ b/web/components/chat/chat-feedback.tsx @@ -102,7 +102,7 @@ const ChatFeedback = ({ conv_index, question, knowledge_space, select_param }: P ques_type: ques_type, messages: text, }; - console.log(formData); + apiInterceptors( postChatFeedBackForm({ data: formData, diff --git a/web/components/database/form-dialog.tsx b/web/components/database/form-dialog.tsx index 15804bef7..b1f6e183b 100644 --- a/web/components/database/form-dialog.tsx +++ b/web/components/database/form-dialog.tsx @@ -104,7 +104,7 @@ function FormDialog({ open, choiceDBType, dbTypeList, editValue, dbNames, onClos setLoading(false); } }; - console.log(form.getFieldValue('db_type')); + const { run: fetchOmcList } = useDebounceFn( async (name: string) => { setOmcListLoading(true); @@ -117,7 +117,6 @@ function FormDialog({ open, choiceDBType, dbTypeList, editValue, dbNames, onClos wait: 500, }, ); - console.log('omcDBList', omcDBList); const lockDBType = useMemo(() => !!editValue || !!choiceDBType, [editValue, choiceDBType]); return ( @@ -163,8 +162,6 @@ function FormDialog({ open, choiceDBType, dbTypeList, editValue, dbNames, onClos options={omcDBList} onSearch={fetchOmcList} onSelect={searchName => { - console.log(searchName, 'searchName'); - const item = omcDBList?.find((item: any) => item.value === searchName) as any; form.setFieldsValue({ db_arn: item?.arn, diff --git a/web/components/flow/flow-card.tsx b/web/components/flow/flow-card.tsx index f870c6e5c..34521f368 100644 --- a/web/components/flow/flow-card.tsx +++ b/web/components/flow/flow-card.tsx @@ -24,8 +24,6 @@ interface FlowCardProps { } const FlowCard: React.FC = ({ flow, onCopy, deleteCallback }) => { - console.log(flow, 'flow'); - const { model } = useContext(ChatContext); const { t } = useTranslation(); const [modal, contextHolder] = Modal.useModal(); diff --git a/web/components/knowledge/RecallTestModal.tsx b/web/components/knowledge/RecallTestModal.tsx index 61ca5d14f..8a0c216a8 100644 --- a/web/components/knowledge/RecallTestModal.tsx +++ b/web/components/knowledge/RecallTestModal.tsx @@ -68,7 +68,6 @@ const RecallTestModal: React.FC = ({ open, setOpen, space const onTest = async () => { form.validateFields().then(async values => { const extraVal = extraForm.getFieldsValue(); - console.log(extraVal); await recallTestRun({ recall_top_k: 1, recall_retrievers: options, ...values, ...extraVal }); }); }; diff --git a/web/components/knowledge/doc-panel.tsx b/web/components/knowledge/doc-panel.tsx index 10a0f608d..3c52426ae 100644 --- a/web/components/knowledge/doc-panel.tsx +++ b/web/components/knowledge/doc-panel.tsx @@ -234,7 +234,6 @@ export default function DocPanel(props: IProps) { manual: true, debounceWait: 500, onSuccess: data => { - console.log(data); setSearchDocuments(data?.data); }, }, diff --git a/web/components/knowledge/segmentation.tsx b/web/components/knowledge/segmentation.tsx index fdff0117e..50dd1678f 100644 --- a/web/components/knowledge/segmentation.tsx +++ b/web/components/knowledge/segmentation.tsx @@ -22,7 +22,6 @@ let intervalId: string | number | NodeJS.Timeout | undefined; export default function Segmentation(props: IProps) { const { spaceName, docType, uploadFiles, handleStepChange } = props; - console.log(docType, 'doctype'); const { t } = useTranslation(); const [form] = Form.useForm(); const [files, setFiles] = useState(uploadFiles); diff --git a/web/pages/construct/knowledge/chunk/index.tsx b/web/pages/construct/knowledge/chunk/index.tsx index a78ff280b..1dcf9ae44 100644 --- a/web/pages/construct/knowledge/chunk/index.tsx +++ b/web/pages/construct/knowledge/chunk/index.tsx @@ -147,7 +147,6 @@ function ChunkList() { onClick={() => { setIsModalOpen(true); setCurrentChunkInfo(chunk); - console.log(chunk); }} >

{t('Content')}:

diff --git a/web/pages/evaluation/index.tsx b/web/pages/evaluation/index.tsx index ad1cd59be..313572aff 100644 --- a/web/pages/evaluation/index.tsx +++ b/web/pages/evaluation/index.tsx @@ -115,12 +115,6 @@ const Evaluation = () => { { manual: true, onSuccess: data => { - console.log( - data, - data?.map((i: Record) => { - return { label: i.describe, value: i.name }; - }), - ); setMetricOptions( data?.map((i: Record) => { return { label: i.describe, value: i.name }; @@ -355,7 +349,6 @@ const Evaluation = () => { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', }), ); - console.log(url, response); const a = document.createElement('a'); a.href = url; a.download = filename; @@ -501,7 +494,6 @@ const Evaluation = () => { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', }), ); - console.log(url, response); const a = document.createElement('a'); a.href = url; a.download = filename; @@ -786,7 +778,6 @@ const Evaluation = () => { uploadDataSetsFile(formData) .then(response => { - console.log(response); if (response.data.success) { message.success('上传成功'); runGetDataSets(); @@ -809,7 +800,6 @@ const Evaluation = () => { content: values.content, }) .then(res => { - console.log(res); if (res.data.success) { message.success('上传成功'); runGetDataSets(); @@ -880,7 +870,6 @@ const Evaluation = () => { name='dataSet' maxCount={1} beforeUpload={file => { - // console.log(file, dataSetForm.getFieldsValue()); dataSetForm.setFieldsValue({ doc_file: file, });