聊天协议字段变化
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user