更新聊天功能,调整调用 chat 函数以支持传递知识库名称,提升知识库使用体验。

This commit is contained in:
ccmjga
2025-06-29 11:12:14 +08:00
parent e646bdffa8
commit 1bd50f5de2

View File

@@ -404,7 +404,7 @@ const chatByMode = async (
} else {
// 聊天模式,判断是否使用知识库
if (selectedLibraryId.value !== undefined) {
await chat(message, selectedLibraryId.value);
await chat(message, selectedLibraryId.value, selectedLibraryName.value);
} else {
await chat(message);
}