|
@@ -960,13 +960,25 @@ ${fileText}
|
|
|
|
|
|
console.log(_msg);
|
|
console.log(_msg);
|
|
let params = {
|
|
let params = {
|
|
- assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
|
- userId: this.userid,
|
|
|
|
- message: _msg,
|
|
|
|
- session_name: `${this.formId}-testSmarter`,
|
|
|
|
- // uid: _uuid,
|
|
|
|
- file_ids: this.fileId,
|
|
|
|
- model: "gpt-4o-2024-08-06"
|
|
|
|
|
|
+ // assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
|
+ // userId: this.userid,
|
|
|
|
+ // message: _msg,
|
|
|
|
+ // session_name: `${this.formId}-testSmarter`,
|
|
|
|
+ // // uid: _uuid,
|
|
|
|
+ // file_ids: this.fileId,
|
|
|
|
+ // model: "gpt-4o-2024-08-06"
|
|
|
|
+ id:"6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
|
+ max_completion_tokens:4096,
|
|
|
|
+ message: _msg,
|
|
|
|
+ model: "gpt-4o-2024-11-20",
|
|
|
|
+ userId: this.userid,
|
|
|
|
+ sound_url:"",
|
|
|
|
+ file_ids: this.fileId.length > 0 ? this.fileId : [],
|
|
|
|
+ temperature:0.2,
|
|
|
|
+ top_p:1,
|
|
|
|
+ stream:false,
|
|
|
|
+ session_name: `${this.formId}-testSmarter`,
|
|
|
|
+ uid:_uid,
|
|
};
|
|
};
|
|
this.array.push({
|
|
this.array.push({
|
|
loading: false,
|
|
loading: false,
|
|
@@ -987,10 +999,12 @@ ${fileText}
|
|
this.ajax
|
|
this.ajax
|
|
// .post("https://gpt4.cocorobo.cn/chat", params)
|
|
// .post("https://gpt4.cocorobo.cn/chat", params)
|
|
// .post("https://claude3.cocorobo.cn/chat", params)
|
|
// .post("https://claude3.cocorobo.cn/chat", params)
|
|
- .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
|
|
|
|
|
|
+ // .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
|
|
|
|
+ .post("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat", params)
|
|
.then(res => {
|
|
.then(res => {
|
|
// console.log(res);
|
|
// console.log(res);
|
|
- let _data = res.data.FunctionResponse.message;
|
|
|
|
|
|
+ // let _data = res.data.FunctionResponse.message;
|
|
|
|
+ let _data = res.data.message;
|
|
_data = _data.replaceAll("```json", "").replaceAll("```", "");
|
|
_data = _data.replaceAll("```json", "").replaceAll("```", "");
|
|
const match = _data.match(/\[\s*{[^]*}\s*\]/);
|
|
const match = _data.match(/\[\s*{[^]*}\s*\]/);
|
|
// console.log("this.wangData",this.wangData);
|
|
// console.log("this.wangData",this.wangData);
|