mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
fix: filter system prompt 字符串判空
修复 filterSystemPrompt为'\n'时, 判断有问题
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user