聊天协议字段变化
This commit is contained in:
@@ -210,13 +210,13 @@ export class ChatAIService {
|
||||
let userData = {
|
||||
isAi: false,
|
||||
msg: message,
|
||||
msgId: new Date().getTime(),
|
||||
msgId: new Date().getTime().toString(),
|
||||
};
|
||||
msgList.push(userData);
|
||||
let aiData = {
|
||||
isAi: true,
|
||||
msg: response.text,
|
||||
msgId: new Date().getTime() + 1,
|
||||
msgId: (new Date().getTime() + 1).toString(),
|
||||
};
|
||||
msgList.push(aiData);
|
||||
this.reqChatMsg(roleId, msgList);
|
||||
|
||||
Reference in New Issue
Block a user