mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
perf: prompt
This commit is contained in:
@@ -25,7 +25,7 @@ export const lafClaudChat = async ({
|
|||||||
.filter((item) => item.obj === 'System')
|
.filter((item) => item.obj === 'System')
|
||||||
.map((item) => item.value)
|
.map((item) => item.value)
|
||||||
.join('\n');
|
.join('\n');
|
||||||
const systemPromptText = systemPrompt ? `这是我的知识:'${systemPrompt}'\n` : '';
|
const systemPromptText = systemPrompt ? `\n知识库内容:'${systemPrompt}'\n我的问题:` : '';
|
||||||
|
|
||||||
const prompt = systemPromptText + messages[messages.length - 1].value;
|
const prompt = systemPromptText + messages[messages.length - 1].value;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user