Commit 1d740957 by archer

temp

parent ca99837d
......@@ -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 || '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment