This commit is contained in:
archer
2023-05-15 09:16:02 +08:00
parent ca99837dab
commit 1d74095739

View File

@@ -25,9 +25,9 @@ export const lafClaudChat = async ({
.filter((item) => item.obj === 'System')
.map((item) => item.value)
.join('\n');
const systemPromptText = systemPrompt ? `你本次知识:${systemPrompt}\n` : '';
const systemPromptText = systemPrompt ? `你本次知识:${systemPrompt}\n下面是我的问题:` : '';
const prompt = `${systemPromptText}我的问题是:'${messages[messages.length - 1].value}'`;
const prompt = `${systemPromptText}'${messages[messages.length - 1].value}'`;
const lafResponse = await axios.post(
process.env.CLAUDE_BASE_URL || '',