mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-12 11:43:42 +08:00
优化聊天服务异步更新标题, 提高性能
This commit is contained in:
4
dist/modules/chat/chat.service.js
vendored
4
dist/modules/chat/chat.service.js
vendored
@@ -240,7 +240,7 @@ let ChatService = class ChatService {
|
|||||||
// }, req);
|
// }, req);
|
||||||
// common_1.Logger.log(`更新标题名称为: ${chatTitle}`);
|
// common_1.Logger.log(`更新标题名称为: ${chatTitle}`);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
//将更新标题名称的代码改为异步函数
|
//将更新标题名称的代码改为异步函数
|
||||||
const updateTitleAsync = async () => {
|
const updateTitleAsync = async () => {
|
||||||
if ((groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.title) === '新对话') {
|
if ((groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.title) === '新对话') {
|
||||||
@@ -257,7 +257,7 @@ let ChatService = class ChatService {
|
|||||||
isSticky: false,
|
isSticky: false,
|
||||||
config: '',
|
config: '',
|
||||||
}, req);
|
}, req);
|
||||||
common_1.Logger.log(`更新标题名称为: ${chatTitle}`);
|
common_1.Logger.log(`${groupId} 更新标题名称为: ${chatTitle}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user