mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-18 01:16:01 +00:00
fix: response
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
接受一个csv文件,表格头包含 question 和 answer。question 代表问题,answer 代表答案。
|
接受一个csv文件,表格头包含 question 和 answer。question 代表问题,answer 代表答案。
|
||||||
导入前会进行去重,如果问题和答案完全相同,则不会被导入,所以最终导入的内容可能会比文件的内容少。
|
导入前会进行去重,如果问题和答案完全相同,则不会被导入,所以最终导入的内容可能会比文件的内容少。但是,对于带有换行的内容,目前无法去重。
|
||||||
| question | answer |
|
| question | answer |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| 什么是 laf | laf 是一个云函数开发平台…… |
|
| 什么是 laf | laf 是一个云函数开发平台…… |
|
||||||
|
@@ -15,7 +15,7 @@ import {
|
|||||||
import { useTabs } from '@/hooks/useTabs';
|
import { useTabs } from '@/hooks/useTabs';
|
||||||
import { useConfirm } from '@/hooks/useConfirm';
|
import { useConfirm } from '@/hooks/useConfirm';
|
||||||
import { useSelectFile } from '@/hooks/useSelectFile';
|
import { useSelectFile } from '@/hooks/useSelectFile';
|
||||||
import { readTxtContent, readPdfContent, readDocContent } from '@/utils/tools';
|
import { readTxtContent, readPdfContent, readDocContent } from '@/utils/file';
|
||||||
import { postSplitData } from '@/api/data';
|
import { postSplitData } from '@/api/data';
|
||||||
import { useMutation } from '@tanstack/react-query';
|
import { useMutation } from '@tanstack/react-query';
|
||||||
import { useToast } from '@/hooks/useToast';
|
import { useToast } from '@/hooks/useToast';
|
||||||
|
@@ -49,6 +49,6 @@ export const jsonRes = <T = any>(
|
|||||||
code,
|
code,
|
||||||
statusText: '',
|
statusText: '',
|
||||||
message: msg,
|
message: msg,
|
||||||
data: data || null
|
data: data !== undefined ? data : null
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user