fix: filter system prompt 字符串判空
修复 filterSystemPrompt为'\n'时, 判断有问题
This commit is contained in:
parent
1e262a2198
commit
875f78b42c
@ -126,7 +126,7 @@ export const searchKb = async ({
|
|||||||
length: Math.floor(maxTokens * rate)
|
length: Math.floor(maxTokens * rate)
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.join('\n');
|
.join('\n').trim();
|
||||||
|
|
||||||
/* 高相似度+不回复 */
|
/* 高相似度+不回复 */
|
||||||
if (!filterSystemPrompt && model.chat.searchMode === ModelVectorSearchModeEnum.hightSimilarity) {
|
if (!filterSystemPrompt && model.chat.searchMode === ModelVectorSearchModeEnum.hightSimilarity) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user