|
@@ -577,7 +577,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiteacherTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiteacherTextDetail')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiteacherTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiteacherTextDetail')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiteacherTextDetail', 2)"
|
|
@@ -610,7 +610,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aitargetTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aitargetTextDetail')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aitargetTextDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aitargetTextDetail')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aitargetTextDetail', 2)"
|
|
@@ -1104,7 +1104,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail', 2)"
|
|
@@ -1154,7 +1154,7 @@
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail', 2)"
|
|
|
@click="openAiDialog(2, 'aiDetail', 2)">智能优化</div>
|
|
|
</el-tooltip> -->
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail')"></el-switch>
|
|
|
<div class="r_pub_button_edit" style="margin-left:10px" @click="courseTextB = !courseTextB,forceUpdate2()">{{ courseTextB ? '确定' : '编辑'}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1326,7 +1326,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aitargetTextDetail2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aitargetTextDetail2')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aitargetTextDetail2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aitargetTextDetail2')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aitargetTextDetail2', 2)"
|
|
@@ -1655,7 +1655,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail1-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiDetail1-'+index)"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail1-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail1-'+index)"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail1', item, index)"
|
|
@@ -1686,7 +1686,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote1']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiCpote1')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote1']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote1')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote1')"
|
|
|
@click="openAiDialog(2, 'aiCpote1')">智能优化</div>
|
|
@@ -1715,7 +1715,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiCpote2')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote2']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote2')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote2')"
|
|
|
@click="openAiDialog(2, 'aiCpote2')">智能优化</div>
|
|
@@ -1744,7 +1744,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote3']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiCpote3')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote3']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote3')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote3')"
|
|
|
@click="openAiDialog(2, 'aiCpote3')">智能优化</div>
|
|
@@ -1773,7 +1773,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote4']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiCpote4')"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiCpote4']" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiCpote4')"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiCpote4')"
|
|
|
@click="openAiDialog(2, 'aiCpote4')">智能优化</div>
|
|
@@ -1820,7 +1820,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['teacherDetail2-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('teacherDetail2-'+index)"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['teacherDetail2-'+index]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('teacherDetail2-'+index)"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'teacherDetail2', item.taskDetail3, index)"
|
|
@@ -2633,6 +2633,7 @@
|
|
|
}" :class="{ smallTaskBorder: itemTask.isFold === 1 }"
|
|
|
v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex" v-loading="taskLoading[itemTaskIndex]" element-loading-text="小可正在努力生成中,请稍等...">
|
|
|
<div style="background: #fff; border-radius: 5px" v-loading="taskGLoading[itemTaskIndex] && taskGLoading[itemTaskIndex][0]" element-loading-text="小可正在努力生成中,请稍等...">
|
|
|
+ <div class="c_pub_button_confirm stopBtn" v-if="taskGLoading[itemTaskIndex] && taskGLoading[itemTaskIndex][0]" @click="cancelAjax('aiTaskGL1', itemTaskIndex)">停止</div>
|
|
|
<div class="taskTitle">
|
|
|
<div style="display: flex;width: 100%;justify-content: space-between;">
|
|
|
<span>任务{{ itemTaskIndex + 1 }}</span>
|
|
@@ -2731,7 +2732,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex;">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail2-'+itemTaskIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiDetail2-'+itemTaskIndex)"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail2-'+itemTaskIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail2-'+itemTaskIndex)"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op" @contextmenu.prevent="openAiDialog(1, 'aiDetail2', unitJson[unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
@@ -3505,6 +3506,7 @@
|
|
|
unitJson[unitIndex].easy == 6 ||
|
|
|
!unitJson[unitIndex].easy
|
|
|
" class="toolChoose" v-loading="taskGLoading[itemTaskIndex] && taskGLoading[itemTaskIndex][1]" element-loading-text="小可正在努力生成中,请稍等...">
|
|
|
+ <div class="c_pub_button_confirm stopBtn" v-if="taskGLoading[itemTaskIndex] && taskGLoading[itemTaskIndex][1]" @click="cancelAjax('aiTaskGL2', itemTaskIndex)">停止</div>
|
|
|
<div v-if="
|
|
|
unitJson[unitIndex].easy != 3 &&
|
|
|
!(
|
|
@@ -4848,7 +4850,7 @@
|
|
|
<div class="op_box">
|
|
|
<div class="op_remark">*可以将需要优化的建议添加在工具描述后,点击“智能优化”,自动进行修改</div>
|
|
|
<div style="display: flex">
|
|
|
- <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail3-'+itemTaskIndex+'-'+toolIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2'" @change="handleSwitchChange('aiDetail3-'+itemTaskIndex+'-'+toolIndex)"></el-switch>
|
|
|
+ <el-switch style="margin-right: 10px" v-model="isQuote['aiDetail3-'+itemTaskIndex+'-'+toolIndex]" active-text="引用" active-color="#0061FF" class="custom-switch" v-if="dialogTemplateArray.indexOf(templateid) != -1" @change="handleSwitchChange('aiDetail3-'+itemTaskIndex+'-'+toolIndex)"></el-switch>
|
|
|
<el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
|
|
|
<div class="r_pub_button_op"
|
|
|
@contextmenu.prevent="openAiDialog(1, 'aiDetail3', itemTool, itemTaskIndex, toolIndex)"
|
|
@@ -5362,7 +5364,7 @@
|
|
|
<aiTips ttitle="任务详情" title="任务评价优化" :detail="aiJson.aiDetail4" pan="aiDetail4" @setAiJson="setAiJson" />
|
|
|
<aiTips ttitle="任务详情" title="生成评价细则" :detail="aiJson.aiRateRule" pan="aiRateRule" @setAiJson="setAiJson"/>
|
|
|
</div>
|
|
|
- <div class="leftBar2" v-if="istemplate != 1 && templateid == 'cf5722a4-401b-11ef-b873-005056b86cd2' && chatid">
|
|
|
+ <div class="leftBar2" v-if="istemplate != 1 && dialogTemplateArray.indexOf(templateid) != -1 && chatid">
|
|
|
<aiBoxRight
|
|
|
:languageSetting="languageSetting"
|
|
|
:courseId="chatid"
|
|
@@ -7402,7 +7404,10 @@ export default {
|
|
|
knowFileids: [],
|
|
|
pjTemplateArray: [ 'cf5722a4-401b-11ef-b873-005056b86cp5' ],
|
|
|
pjIndex: [52, 48, 1, 3, 16, 45, 47, 41],
|
|
|
- taskAnLoading: []
|
|
|
+ taskAnLoading: [],
|
|
|
+ dialogTemplateArray: [ 'cf5722a4-401b-11ef-b873-005056b86cd2', '68629cfb-e719-48e9-a03d-56f189fb9cb0' ],
|
|
|
+ taskCancelToken1: [],
|
|
|
+ taskCancelToken2: [],
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
@@ -9011,6 +9016,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.taskAnLoading[index] = true
|
|
|
+ this.$forceUpdate()
|
|
|
let _this = this
|
|
|
let md = new MarkdownIt();
|
|
|
|
|
@@ -11067,7 +11073,18 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
let _mclass = fileM == 1 ? [] : mclass.length ? this.arrayToArray(fileM, mclass) : [2]
|
|
|
let fileids = this.knowInfoData.map((item) => item.fileid)
|
|
|
|
|
|
- if(_sub.length > 0 && _mclass.length > 0 && _mclass[0] == 2 && fileids.indexOf(_file.fileid) == -1){
|
|
|
+ if(_sub.length > 0 && _mclass.length > 0 && _mclass[0] == 2 && fileids.indexOf(_file.fileid) == -1 && _file.type == 1){
|
|
|
+ this.knowInfoData.push({
|
|
|
+ name: _file.filename,
|
|
|
+ url: _file.url,
|
|
|
+ uid: '',
|
|
|
+ type: 3,
|
|
|
+ fileid: _file.fileid,
|
|
|
+ });
|
|
|
+ this.knowFileids.push(_file.fileid)
|
|
|
+ }
|
|
|
+ fileids = this.knowInfoData.map((item) => item.fileid)
|
|
|
+ if(_mclass.length > 0 && fileS == 1 && _mclass[0] != 2 && fileids.indexOf(_file.fileid) == -1 && _file.type == 1){
|
|
|
this.knowInfoData.push({
|
|
|
name: _file.filename,
|
|
|
url: _file.url,
|
|
@@ -11078,7 +11095,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.knowFileids.push(_file.fileid)
|
|
|
}
|
|
|
fileids = this.knowInfoData.map((item) => item.fileid)
|
|
|
- if(_mclass.length > 0 && fileS == 1 && _mclass[0] != 2 && fileids.indexOf(_file.fileid) == -1){
|
|
|
+ if(_sub.length > 0 && fileM == 1 && fileids.indexOf(_file.fileid) == -1 && _file.type == 1){
|
|
|
this.knowInfoData.push({
|
|
|
name: _file.filename,
|
|
|
url: _file.url,
|
|
@@ -11089,7 +11106,8 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
this.knowFileids.push(_file.fileid)
|
|
|
}
|
|
|
fileids = this.knowInfoData.map((item) => item.fileid)
|
|
|
- if(_sub.length > 0 && fileM == 1 && fileids.indexOf(_file.fileid) == -1){
|
|
|
+
|
|
|
+ if(_sub.length > 0 && _mclass.length > 0 && _mclass[0] != 2 && fileids.indexOf(_file.fileid) == -1 && _file.type == 1){
|
|
|
this.knowInfoData.push({
|
|
|
name: _file.filename,
|
|
|
url: _file.url,
|
|
@@ -11101,7 +11119,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[index].taskDetail3.replaceAll('#',''
|
|
|
}
|
|
|
fileids = this.knowInfoData.map((item) => item.fileid)
|
|
|
|
|
|
- if(_sub.length > 0 && _mclass.length > 0 && _mclass[0] != 2 && fileids.indexOf(_file.fileid) == -1){
|
|
|
+ if(sub.length > 1 && fileids.indexOf(_file.fileid) == -1 && _file.type == 2){
|
|
|
this.knowInfoData.push({
|
|
|
name: _file.filename,
|
|
|
url: _file.url,
|
|
@@ -18155,6 +18173,29 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
this.isTeacherTaskCancelSource[index] = null
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if(type == 'aiTaskGL1'){
|
|
|
+ this.$message.success("已经成功停止生成任务概述")
|
|
|
+ if(this.taskCancelToken1 && this.taskCancelToken1[index]){
|
|
|
+ this.taskCancelToken1[index].cancel('Request canceled by the user.');
|
|
|
+ this.taskCancelToken1[index] = null;
|
|
|
+ }
|
|
|
+ if(this.taskGLoading[index] && this.taskGLoading[index][0]){
|
|
|
+ this.taskGLoading[index][0] = false
|
|
|
+ }
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ if(type == 'aiTaskGL2'){
|
|
|
+ this.$message.success("已经成功停止生成任务概述")
|
|
|
+ if(this.taskCancelToken2 && this.taskCancelToken2[index]){
|
|
|
+ this.taskCancelToken2[index].cancel('Request canceled by the user.');
|
|
|
+ this.taskCancelToken2[index] = null;
|
|
|
+ }
|
|
|
+ if(this.taskGLoading[index] && this.taskGLoading[index][1]){
|
|
|
+ this.taskGLoading[index][1] = false
|
|
|
+ }
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
},
|
|
|
async aiGetTask2(messages, callback) {
|
|
|
let _this = this
|
|
@@ -19267,6 +19308,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ _this.taskCancelToken1[index] = _this.ajax.setCancelSource();
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
@@ -19278,7 +19320,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
temperature: this.mode == 3 ? 0.5 : 0.1,
|
|
|
}
|
|
|
this.ajax
|
|
|
- .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
|
|
|
+ .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm, _this.taskCancelToken1[index])
|
|
|
.then(async (response) => {
|
|
|
console.log(response);
|
|
|
let data = response.data.FunctionResponse
|
|
@@ -19315,10 +19357,14 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
|
|
|
// callback ? callback() : ''
|
|
|
_this.taskGLoading[index][0] = false
|
|
|
+ _this.taskCancelToken1[index] = null
|
|
|
+ _this.$forceUpdate();
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
// _this.loading = false
|
|
|
_this.taskGLoading[index][0] = false
|
|
|
+ _this.taskCancelToken1[index] = null
|
|
|
+ _this.$forceUpdate();
|
|
|
console.log(error);
|
|
|
});
|
|
|
},
|
|
@@ -19344,6 +19390,8 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ _this.taskCancelToken2[index] = _this.ajax.setCancelSource();
|
|
|
+
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
@@ -19354,7 +19402,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
temperature: this.mode == 3 ? 0.5 : 0.1,
|
|
|
}
|
|
|
this.ajax
|
|
|
- .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm)
|
|
|
+ .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", parm, _this.taskCancelToken2[index])
|
|
|
.then(async (response) => {
|
|
|
console.log(response);
|
|
|
let data = response.data.FunctionResponse
|
|
@@ -19425,7 +19473,7 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
}
|
|
|
_this.unitJson[0].chapterInfo[0].taskJson[index].toolChoose.push(_json)
|
|
|
-
|
|
|
+
|
|
|
if(converter(_task.toolChoose[j].tool) == converter('问答') || _task.toolChoose[j].tool == 'Q&A Tool'){
|
|
|
let answerQ = await _this.aiCreateQuestion(15, index)
|
|
|
// _json.answerQ = answerQ.answerQ
|
|
@@ -19468,10 +19516,14 @@ ${this.courseText && this.aiCallBack[0] == 2 ? '注意,优化原有的<参考
|
|
|
|
|
|
// callback ? callback() : ''
|
|
|
_this.taskGLoading[index][1] = false
|
|
|
+ _this.taskCancelToken2[index] = null
|
|
|
+ _this.$forceUpdate();
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
// _this.loading = false
|
|
|
_this.taskGLoading[index][1] = false
|
|
|
+ _this.taskCancelToken2[index] = null
|
|
|
+ _this.$forceUpdate();
|
|
|
console.log(error);
|
|
|
});
|
|
|
},
|