Commit 875f78b4 by kense Committed by Archer

fix: filter system prompt 字符串判空

修复 filterSystemPrompt为'\n'时, 判断有问题
parent 1e262a21
......@@ -126,7 +126,7 @@ export const searchKb = async ({
length: Math.floor(maxTokens * rate)
})
)
.join('\n');
.join('\n').trim();
/* 高相似度+不回复 */
if (!filterSystemPrompt && model.chat.searchMode === ModelVectorSearchModeEnum.hightSimilarity) {
......
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