update 页面跳转
This commit is contained in:
@@ -223,25 +223,15 @@ export class ChatController {
|
||||
// 通知界面收到回复
|
||||
this.callback?.onMessageReceived(response);
|
||||
|
||||
// 增加聊天次数计数
|
||||
//this.chatModel.incrementChatCount();
|
||||
|
||||
// 注意:情绪状态将通过异步事件更新,不在这里同步获取
|
||||
|
||||
console.log(`Response received from role ${roleId}: ${response}`);
|
||||
return true;
|
||||
} else {
|
||||
// 移除加载中的对话
|
||||
//this.dialogManager?.removeLoadingDialog();
|
||||
|
||||
const error = new Error("AI返回了空响应");
|
||||
this.handleError(error);
|
||||
return false;
|
||||
}
|
||||
} catch (error) {
|
||||
// 移除加载中的对话
|
||||
//this.dialogManager?.removeLoadingDialog();
|
||||
|
||||
|
||||
ErrorHandler.Instance.handleApiError(
|
||||
error,
|
||||
"ChatController.sendMessage",
|
||||
|
||||
Reference in New Issue
Block a user