mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-13 21:27:19 +08:00
更新聊天功能,调整调用 chat 函数以支持传递知识库名称,提升知识库使用体验。
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user