fix: align agent no-hit handling
This commit is contained in:
@@ -74,7 +74,7 @@ const selectedModelName = computed(() => {
|
||||
return model?.displayName || model?.modelName || "未选择模型";
|
||||
});
|
||||
const selectedKnowledgeSummary = computed(() => {
|
||||
if (!agentForm.knowledgeIds.length) return "未选择知识库";
|
||||
if (!agentForm.knowledgeIds.length) return "默认使用全部正式开放知识库";
|
||||
if (agentForm.knowledgeIds.length === 1) {
|
||||
return knowledge.value.find((item) => item.id === agentForm.knowledgeIds[0])?.name || "1 个知识库";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user