mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-02 01:33:45 +08:00
更新聊天功能,调整调用 chat 函数以支持传递知识库名称,提升知识库使用体验。
This commit is contained in:
@@ -404,7 +404,7 @@ const chatByMode = async (
|
|||||||
} else {
|
} else {
|
||||||
// 聊天模式,判断是否使用知识库
|
// 聊天模式,判断是否使用知识库
|
||||||
if (selectedLibraryId.value !== undefined) {
|
if (selectedLibraryId.value !== undefined) {
|
||||||
await chat(message, selectedLibraryId.value);
|
await chat(message, selectedLibraryId.value, selectedLibraryName.value);
|
||||||
} else {
|
} else {
|
||||||
await chat(message);
|
await chat(message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user