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
84d91f3f
authored
Apr 07, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 接口大小
parent
7811f748
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/pages/api/chat/vectorGpt.ts
+2
-2
src/pages/api/model/data/splitData.ts
+8
-0
No files found.
src/pages/api/chat/vectorGpt.ts
View file @
84d91f3f
...
@@ -100,8 +100,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
...
@@ -100,8 +100,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
throw
new
Error
(
'对不起,我没有找到你的问题'
);
throw
new
Error
(
'对不起,我没有找到你的问题'
);
}
}
// textArr 筛选,最多
30
00 tokens
// textArr 筛选,最多
28
00 tokens
const
systemPrompt
=
systemPromptFilter
(
formatRedisPrompt
,
30
00
);
const
systemPrompt
=
systemPromptFilter
(
formatRedisPrompt
,
28
00
);
prompts
.
unshift
({
prompts
.
unshift
({
obj
:
'SYSTEM'
,
obj
:
'SYSTEM'
,
...
...
src/pages/api/model/data/splitData.ts
View file @
84d91f3f
...
@@ -76,3 +76,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
...
@@ -76,3 +76,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
});
});
}
}
}
}
export
const
config
=
{
api
:
{
bodyParser
:
{
sizeLimit
:
'10mb'
}
}
};
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