|
@@ -588,6 +588,7 @@ export default {
|
|
|
async addChat(names) {
|
|
|
let _uid = uuidv4();
|
|
|
let cid = `${_uid}-testSmarter`; // 生成的 cid
|
|
|
+ this.cid = cid
|
|
|
let params = [{
|
|
|
uid: this.userid,
|
|
|
name: names,
|
|
@@ -1581,7 +1582,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//保存消息
|
|
|
- async insertChat(_uid,cid) {
|
|
|
+ async insertChat(_uid) {
|
|
|
let _data = this.array.find(i => i.uid == _uid);
|
|
|
this.saveUid = ''
|
|
|
this.faloading = false
|
|
@@ -1599,7 +1600,7 @@ export default {
|
|
|
alltext: _data.aiContent,
|
|
|
type: "chat",
|
|
|
filename: _data.filename,
|
|
|
- session_name: cid
|
|
|
+ session_name: this.cid
|
|
|
};
|
|
|
this.ajax
|
|
|
.post("https://gpt4.cocorobo.cn/insert_chat", params)
|