|
@@ -2615,22 +2615,38 @@ ${JSON.stringify(forAllList)}
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
- assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
- message: [
|
|
|
- {
|
|
|
- type: "text",
|
|
|
- text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
- }
|
|
|
- ],
|
|
|
- session_name: uuidv4(),
|
|
|
- userId: this.userid,
|
|
|
- file_ids: '',
|
|
|
- model: "gpt-4o-2024-11-20"
|
|
|
+ id: '978252d7-a26e-4e70-8d75-3336497abac1',
|
|
|
+ message: [
|
|
|
+ {
|
|
|
+ type: "text",
|
|
|
+ text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ userId: this.userid,
|
|
|
+ model: 'open-gpt-4.1',
|
|
|
+ file_ids: [],
|
|
|
+ sound_url: '',
|
|
|
+ temperature: 0.2,
|
|
|
+ top_p: 1,
|
|
|
+ max_completion_tokens: 100000,
|
|
|
+ // uid: _uid,
|
|
|
+ session_name: uuidv4(),
|
|
|
+ // assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
+ // message: [
|
|
|
+ // {
|
|
|
+ // type: "text",
|
|
|
+ // text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
+ // session_name: uuidv4(),
|
|
|
+ // userId: this.userid,
|
|
|
+ // file_ids: '',
|
|
|
+ // model: "gpt-4o-2024-11-20"
|
|
|
};
|
|
|
this.ajax
|
|
|
- .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
|
|
|
+ .post("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat", params)
|
|
|
.then(response => {
|
|
|
- let data = response.data.FunctionResponse;
|
|
|
+ let data = response.data;
|
|
|
// console.log("data", data.message);
|
|
|
// console.log('kkkk',JSON.parse(data.message));
|
|
|
|
|
@@ -2802,22 +2818,38 @@ ${JSON.stringify(forAllList)}
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
- assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
- message: [
|
|
|
- {
|
|
|
- type: "text",
|
|
|
- text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
- }
|
|
|
- ],
|
|
|
- session_name: uuidv4(),
|
|
|
- userId: this.userid,
|
|
|
- file_ids: '',
|
|
|
- model: "gpt-4o-2024-11-20"
|
|
|
+ id: '978252d7-a26e-4e70-8d75-3336497abac1',
|
|
|
+ message: [
|
|
|
+ {
|
|
|
+ type: "text",
|
|
|
+ text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ userId: this.userid,
|
|
|
+ model: 'open-gpt-4.1',
|
|
|
+ file_ids: [],
|
|
|
+ sound_url: '',
|
|
|
+ temperature: 0.2,
|
|
|
+ top_p: 1,
|
|
|
+ max_completion_tokens: 100000,
|
|
|
+ // uid: _uid,
|
|
|
+ session_name: uuidv4(),
|
|
|
+ // assistant_id: "6063369f-289a-11ef-8bf4-12e77c4cb76b",
|
|
|
+ // message: [
|
|
|
+ // {
|
|
|
+ // type: "text",
|
|
|
+ // text: messages.replaceAll("\n", " ").replaceAll("*", "")
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
+ // session_name: uuidv4(),
|
|
|
+ // userId: this.userid,
|
|
|
+ // file_ids: '',
|
|
|
+ // model: "gpt-4o-2024-11-20"
|
|
|
};
|
|
|
this.ajax
|
|
|
- .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
|
|
|
+ .post("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat", params)
|
|
|
.then(response => {
|
|
|
- let data = response.data.FunctionResponse;
|
|
|
+ let data = response.data;
|
|
|
this.scoList = JSON.parse(data.message)
|
|
|
this.aiscoLoading = false
|
|
|
|