Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
403e1f2d
authored
May 28, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: export data
parent
d351a56e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
docs/deploy/fastgpt/docker-compose.yml
+2
-2
src/api/plugins/kb.ts
+7
-1
src/api/request.ts
+1
-0
src/pages/api/plugins/kb/data/exportModelData.ts
+8
-0
No files found.
docs/deploy/fastgpt/docker-compose.yml
View file @
403e1f2d
...
...
@@ -48,8 +48,8 @@ services:
-
aliSignName=xxxxx
-
aliTemplateCode=SMS_xxxx
# google V3 安全校验(可选)
-
CLIENT_GOOGLE_VER_TOKEN=
6LcDlDUmAAAAAAbGrwhIZtt3G_Ulf5V-lPamB5qd
-
SERVICE_GOOGLE_VER_TOKEN=
6LcDlDUmAAAAANIOO1jLdSLDAiyQCnX9dVTr81nt
-
CLIENT_GOOGLE_VER_TOKEN=
xxx
-
SERVICE_GOOGLE_VER_TOKEN=
xx
# QA和向量生成最大进程数
-
QA_MAX_PROCESS=10
-
VECTOR_MAX_PROCESS=10
...
...
src/api/plugins/kb.ts
View file @
403e1f2d
...
...
@@ -32,7 +32,13 @@ export const getKbDataList = (data: GetKbDataListProps) =>
* 获取导出数据(不分页)
*/
export
const
getExportDataList
=
(
kbId
:
string
)
=>
GET
<
[
string
,
string
][]
>
(
`/plugins/kb/data/exportModelData?kbId=
${
kbId
}
`
);
GET
<
[
string
,
string
][]
>
(
`/plugins/kb/data/exportModelData`
,
{
kbId
},
{
timeout
:
600000
}
);
/**
* 获取模型正在拆分数据的数量
...
...
src/api/request.ts
View file @
403e1f2d
...
...
@@ -5,6 +5,7 @@ import { TOKEN_ERROR_CODE } from '@/service/errorCode';
interface
ConfigType
{
headers
?:
{
[
key
:
string
]:
string
};
hold
?:
boolean
;
timeout
?:
number
;
}
interface
ResponseDataType
{
code
:
number
;
...
...
src/pages/api/plugins/kb/data/exportModelData.ts
View file @
403e1f2d
...
...
@@ -69,3 +69,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
});
}
}
export
const
config
=
{
api
:
{
bodyParser
:
{
sizeLimit
:
'100mb'
}
}
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment