聊天协议字段变化

This commit is contained in:
chen wei bo
2025-09-18 09:13:52 +08:00
parent 53372bd598
commit c36ff6dc76
+2 -2
View File
@@ -210,13 +210,13 @@ export class ChatAIService {
let userData = { let userData = {
isAi: false, isAi: false,
msg: message, msg: message,
msgId: new Date().getTime(), msgId: new Date().getTime().toString(),
}; };
msgList.push(userData); msgList.push(userData);
let aiData = { let aiData = {
isAi: true, isAi: true,
msg: response.text, msg: response.text,
msgId: new Date().getTime() + 1, msgId: (new Date().getTime() + 1).toString(),
}; };
msgList.push(aiData); msgList.push(aiData);
this.reqChatMsg(roleId, msgList); this.reqChatMsg(roleId, msgList);