|
@@ -787,10 +787,10 @@
|
|
<div class="whiteBg" style="border-radius: 0; margin-top: 15px">
|
|
<div class="whiteBg" style="border-radius: 0; margin-top: 15px">
|
|
<div class="c_info_title">
|
|
<div class="c_info_title">
|
|
教案
|
|
教案
|
|
- <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1">
|
|
|
|
|
|
+ <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom" v-if="istemplate == 1 && dArray.length">
|
|
<button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
|
|
<button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;"
|
|
@contextmenu.prevent="openAiDialog(1, 'aiTeacher2')"
|
|
@contextmenu.prevent="openAiDialog(1, 'aiTeacher2')"
|
|
- @click="openAiDialog(2, 'aiTeacher2')" v-if="istemplate == 1">生成教案</button>
|
|
|
|
|
|
+ @click="openAiDialog(2, 'aiTeacher2')" v-if="istemplate == 1 && dArray.length">生成教案</button>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
|
|
<!-- <button class="c_pub_button_confirm" style="margin: 0 20px 0 auto;">AI优化</button> -->
|
|
</div>
|
|
</div>
|
|
@@ -5619,7 +5619,7 @@ export default {
|
|
taskDetailLoading4: [],
|
|
taskDetailLoading4: [],
|
|
taskDetailLoading5: [],
|
|
taskDetailLoading5: [],
|
|
ttaskDetailLoading5: [],
|
|
ttaskDetailLoading5: [],
|
|
- dArray: {},
|
|
|
|
|
|
+ dArray: [],
|
|
dialogVisibleAiD: false,
|
|
dialogVisibleAiD: false,
|
|
aitype: "",
|
|
aitype: "",
|
|
aiJson: {
|
|
aiJson: {
|
|
@@ -6363,6 +6363,14 @@ export default {
|
|
// if (this.cidType == 1) {
|
|
// if (this.cidType == 1) {
|
|
if (this.steps == 1) {
|
|
if (this.steps == 1) {
|
|
if (this.courseName != "") {
|
|
if (this.courseName != "") {
|
|
|
|
+ if (this.ttaskDetailLoading5.indexOf('task-') !== -1 || this.cpotetLoading.cpote1 || this.cpotetLoading.cpote2 || this.cpotetLoading.cpote3 || this.cpotetLoading.cpote4) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "请回答完毕后再次发送",
|
|
|
|
+ type: "warning"
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && !this.isOutline) {
|
|
if (this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5" && !this.isOutline) {
|
|
this.openAiDialog(clickType, 'aiOutline')
|
|
this.openAiDialog(clickType, 'aiOutline')
|
|
return;
|
|
return;
|
|
@@ -9042,6 +9050,7 @@ export default {
|
|
if(res.data[0].length){
|
|
if(res.data[0].length){
|
|
this.tipsJson = res.data[0][0]
|
|
this.tipsJson = res.data[0][0]
|
|
this.aiJson = JSON.parse(res.data[0][0].tips)
|
|
this.aiJson = JSON.parse(res.data[0][0].tips)
|
|
|
|
+ this.aiJson.teacherDetail2 = this.aiJson.teacherDetail2 ? this.aiJson.teacherDetail2 : '请根据<任务名>、<任务描述>,<课程简要描述>,为该任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含示例答案)。'
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -13009,9 +13018,9 @@ export default {
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
},
|
|
},
|
|
openAiDialog(clickType, type, callback, index, tindex) {
|
|
openAiDialog(clickType, type, callback, index, tindex) {
|
|
- if(clickType == 1){
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ // if(clickType == 1){
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
if (this.courseName == "") {
|
|
if (this.courseName == "") {
|
|
this.$message.error("请补充填写课程名称");
|
|
this.$message.error("请补充填写课程名称");
|
|
return;
|
|
return;
|
|
@@ -13121,7 +13130,7 @@ export default {
|
|
|
|
|
|
} else if (type == "aiTeacher2") {
|
|
} else if (type == "aiTeacher2") {
|
|
this.aitype = "aiTeacher2"
|
|
this.aitype = "aiTeacher2"
|
|
- this.aiText = this.aiJson.teacherDetail2
|
|
|
|
|
|
+ this.aiText = this.aiJson.teacherDetail2 ? this.aiJson.teacherDetail2 : '请根据<任务名>、<任务描述>,<课程简要描述>,为该任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含示例答案)。'
|
|
} else if (type == "teacherDetail") {
|
|
} else if (type == "teacherDetail") {
|
|
if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
|
|
if (this.ttaskDetailLoading5.indexOf('task-' + index) !== -1) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -13145,7 +13154,7 @@ export default {
|
|
}
|
|
}
|
|
this.aitype = "teacherDetail2"
|
|
this.aitype = "teacherDetail2"
|
|
// this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
|
|
// this.aiText = `请根据${callback}\n重新设计该教案。其中包括但不仅限于该任务的教学目标,教学过程,师生研讨,拓展,学生任务单,相关知识点的练习或Qui以及答案等。`
|
|
- this.aiText = this.aiJson.teacherDetail2
|
|
|
|
|
|
+ this.aiText = this.aiJson.teacherDetail2 ? this.aiJson.teacherDetail2 : '请根据<任务名>、<任务描述>,<课程简要描述>,为该任务设计详细的教案,教案需要包含该任务的教学目标,教学过程(包含分步骤的教师活动和学生活动,教师活动与学生活动应该一一对应),相关知识点的讲解,练习(练习需要包含示例答案)。'
|
|
this.aiCallBack = callback
|
|
this.aiCallBack = callback
|
|
this.aiIndex = index
|
|
this.aiIndex = index
|
|
} else if (type == "aiCpote1") {
|
|
} else if (type == "aiCpote1") {
|
|
@@ -13196,7 +13205,7 @@ export default {
|
|
}
|
|
}
|
|
this.dialogVisibleAiD = true
|
|
this.dialogVisibleAiD = true
|
|
},
|
|
},
|
|
- aiConfirm(msg) {
|
|
|
|
|
|
+ async aiConfirm(msg) {
|
|
let sub = []
|
|
let sub = []
|
|
if (this.courseTypeId.length) {
|
|
if (this.courseTypeId.length) {
|
|
for (var i = 0; i < this.courseTypeId.length; i++) {
|
|
for (var i = 0; i < this.courseTypeId.length; i++) {
|
|
@@ -13232,7 +13241,7 @@ export default {
|
|
// ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
|
|
// ${this.getListClassC(this.checkboxList2) ? '班级:' + this.getListClassC(this.checkboxList2) : "无"}
|
|
// ${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
|
|
// ${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
|
|
let message = `NOTICE
|
|
let message = `NOTICE
|
|
-Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
|
|
|
|
|
|
+Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
@@ -13258,30 +13267,45 @@ ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime
|
|
})
|
|
})
|
|
} else if (this.aitype == "aiTask") {
|
|
} else if (this.aitype == "aiTask") {
|
|
var _text = ""
|
|
var _text = ""
|
|
- for (var i = 0; i < this.teacherText.length; i++) {
|
|
|
|
- _text += `任务名称:${this.teacherText[i].task} 教案:${this.teacherText[i].detail.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')}`
|
|
|
|
- }//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
|
|
|
|
|
|
+ for (var i = 0; i < this.unitJson[0].chapterInfo[0].taskJson.length; i++) {
|
|
|
|
+ _text += `任务名称:${this.unitJson[0].chapterInfo[0].taskJson[i].task} 任务描述:${this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail2.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
|
|
|
|
+ }
|
|
let message = `NOTICE
|
|
let message = `NOTICE
|
|
-Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
|
|
|
|
|
|
+Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
|
# Context
|
|
# Context
|
|
## 要求
|
|
## 要求
|
|
-${msg} 以及#教学任务教案 内容要求参考#格式要求
|
|
|
|
-
|
|
|
|
-## 教学任务教案
|
|
|
|
-${_text}
|
|
|
|
-
|
|
|
|
|
|
+${msg} 为**每个教学任务分别输出**以下内容。
|
|
|
|
+
|
|
${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n#任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
|
|
${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n#任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
|
|
|
|
|
|
-## 格式要求
|
|
|
|
-任务数量:${this.teacherText.length}个
|
|
|
|
-任务描述:用老师的身份以友好,但是又清晰明确的口吻来撰写该描述,该描述教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动
|
|
|
|
-评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
|
|
|
|
-工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:电子白板,文档,思维导图,表格,作业提交,问答,选择题,只在这几个工具里选
|
|
|
|
-工具描述:用同学的方式以友好亲切,明确的口吻告诉学生该如何使用该工具
|
|
|
|
|
|
+## 输出格式与要求
|
|
|
|
+•任务名:
|
|
|
|
+•任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
|
|
|
|
+•评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
|
|
|
|
+•平台工具:
|
|
|
|
+•工具名:**从工具列表**中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交,调查问卷,问答,排序,选择匹配题,个人评价,英语写作,英语口语]
|
|
|
|
+•工具指引:以友好,明确的口吻告诉学生该如何使用该工具
|
|
|
|
+
|
|
|
|
+## 参考资料
|
|
|
|
+教学任务教案:${_text}
|
|
|
|
+
|
|
|
|
+## 示例
|
|
|
|
+任务一:探究热的传递方式
|
|
|
|
+•描述:亲爱的同学们,今天我们将一起探索热是如何在不同的环境中传递的。我们将通过一系列有趣的实验来观察热在水中的传递过程。请大家准备好实验材料,并确保遵循安全指南。我们将使用感温粉末或红墨水来帮助我们直观地看到热是如何在水中移动的。在实验过程中,请大家仔细观察并记录你的发现,我们将一起讨论热对流是如何形成的。不要忘记,实验后我们要分享我们的观察结果,并探讨热对流在我们生活中的应用。让我们一起揭开热传递的神秘面纱吧!
|
|
|
|
+工具:
|
|
|
|
+•工具1名称:作业提交
|
|
|
|
+•工具1指引:在工作单里详细记录你的实验步骤、观察到的现象以及你的分析和结论。请确保包含实验的目的、使用的材料、实验过程的描述和结果的解释。
|
|
|
|
+•工具2名称:问答
|
|
|
|
+•工具2指引:通过问答工具回答与热的传递方式相关的问题,以检验你对教学内容的理解和掌握程度。请仔细阅读每个问题,并给出准确的答案。
|
|
|
|
+
|
|
|
|
+## 评价维度
|
|
|
|
+•实验设计和执行能力:学生应能够独立设计实验,清晰地描述实验步骤,并准确执行实验过程。
|
|
|
|
+•观察和记录技能:学生需要展示在实验中对热传递现象的观察能力,并能够详细记录实验数据和现象。
|
|
|
|
+•分析和解释能力:学生应能够对实验结果进行分析,解释热对流的形成原理,并能将实验结果与理论知识相联系。
|
|
|
|
|
|
# Format example
|
|
# Format example
|
|
[{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"},{"tool":"工具名","detail":"工具描述"}]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"}]}]`
|
|
[{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"},{"tool":"工具名","detail":"工具描述"}]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[]},{"detail":"面向学生的任务描述","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具名","detail":"工具描述"}]}]`
|
|
@@ -13315,7 +13339,7 @@ ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#目标层\n'+thi
|
|
_text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
|
|
_text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
|
|
}//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
|
|
}//${this.infoData.length ? '使用文件检索的方式完整的去分析文件内容,并请完全按照要求输出。' : ''}
|
|
let message = ` NOTICE
|
|
let message = ` NOTICE
|
|
-Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
|
|
|
|
|
|
+Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
@@ -13484,7 +13508,7 @@ ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问
|
|
_this.ttextLoading = false
|
|
_this.ttextLoading = false
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
- _this.aiGetgetAiContent(_uuid)
|
|
|
|
|
|
+ await _this.aiGetgetAiContent(_uuid)
|
|
},
|
|
},
|
|
aiGetgetAiContent(_uid) {
|
|
aiGetgetAiContent(_uid) {
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
@@ -13520,6 +13544,7 @@ ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问
|
|
this.textLoading = false
|
|
this.textLoading = false
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
|
|
+ this.$forceUpdate();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiGet2(messages, callback) {
|
|
async aiGet2(messages, callback) {
|
|
@@ -14013,7 +14038,7 @@ ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问
|
|
let messages = ""
|
|
let messages = ""
|
|
if(type == 15){
|
|
if(type == 15){
|
|
messages = `NOTICE
|
|
messages = `NOTICE
|
|
-Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
|
|
|
|
|
|
+Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
@@ -14040,7 +14065,7 @@ ${this.teacherText[task].detail.replaceAll('#','').replaceAll('*','').replaceAll
|
|
`
|
|
`
|
|
}else if(type == 45){
|
|
}else if(type == 45){
|
|
messages = `NOTICE
|
|
messages = `NOTICE
|
|
-Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
|
|
|
|
|
|
+Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
@@ -14294,7 +14319,7 @@ ${this.teacherText[task].detail.replaceAll('#','').replaceAll('*','').replaceAll
|
|
if (data.message) {
|
|
if (data.message) {
|
|
console.log(data.message);
|
|
console.log(data.message);
|
|
// let dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
|
|
// let dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
|
|
- let dArray = {}
|
|
|
|
|
|
+ let dArray = []
|
|
try {
|
|
try {
|
|
dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
|
|
dArray = JSON.parse(data.message.replaceAll('```json','').replaceAll('```',''))
|
|
} catch (error) {
|
|
} catch (error) {
|
|
@@ -14498,7 +14523,7 @@ ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
|
|
_this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
|
|
_this.ttaskDetailLoading.splice(_this.ttaskDetailLoading.indexOf(_tindex), 1)
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
- _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
|
|
|
|
|
|
+ await _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
|
|
},
|
|
},
|
|
aiDetailgetAiContent(_uid, loading, _tindex2) {
|
|
aiDetailgetAiContent(_uid, loading, _tindex2) {
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
@@ -14534,6 +14559,7 @@ ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
|
|
this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
|
|
this.taskDetailLoading.splice(this.taskDetailLoading.indexOf(loading), 1)
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
|
|
+ this.$forceUpdate();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiDetail2(msg, index) {
|
|
async aiDetail2(msg, index) {
|
|
@@ -14634,7 +14660,7 @@ ${msg}
|
|
_this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
|
|
_this.ttaskDetailLoading2.splice(_this.ttaskDetailLoading2.indexOf(_tindex), 1)
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
- _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
|
|
|
|
|
|
+ await _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
|
|
},
|
|
},
|
|
aiDetail2getAiContent(_uid, loading, _tindex2) {
|
|
aiDetail2getAiContent(_uid, loading, _tindex2) {
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
@@ -14670,6 +14696,7 @@ ${msg}
|
|
this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
|
|
this.taskDetailLoading2.splice(this.taskDetailLoading2.indexOf(loading), 1)
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
|
|
+ this.$forceUpdate();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiDetail3(msg, index, tindex) {
|
|
async aiDetail3(msg, index, tindex) {
|
|
@@ -14772,7 +14799,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
_this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
|
|
_this.ttaskDetailLoading3.splice(_this.ttaskDetailLoading3.indexOf(_tindex), 1)
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
- _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
|
|
|
|
|
|
+ await _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
|
|
},
|
|
},
|
|
aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
|
|
aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
@@ -14808,6 +14835,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
|
|
this.taskDetailLoading3.splice(this.taskDetailLoading3.indexOf(loading), 1)
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
|
|
+ this.$forceUpdate();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiDetail4(msg, index) {
|
|
async aiDetail4(msg, index) {
|
|
@@ -15059,7 +15087,7 @@ ${_text2}`
|
|
_this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
|
|
_this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
- _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
|
|
|
|
|
|
+ await _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
|
|
},
|
|
},
|
|
aiDetail5getAiContent(_uid, loading, _tindex2) {
|
|
aiDetail5getAiContent(_uid, loading, _tindex2) {
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
@@ -15095,6 +15123,7 @@ ${_text2}`
|
|
this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
|
|
+ this.$forceUpdate();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiDetail52(msg, index) {
|
|
async aiDetail52(msg, index) {
|
|
@@ -15202,7 +15231,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 ? '任务描
|
|
_this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
|
|
_this.ttaskDetailLoading5.splice(_this.ttaskDetailLoading5.indexOf(_tindex), 1)
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
- _this.aiDetail52getAiContent(_uuid, _tindex, _tindex2)
|
|
|
|
|
|
+ await _this.aiDetail52getAiContent(_uuid, _tindex, _tindex2)
|
|
},
|
|
},
|
|
aiDetail52getAiContent(_uid, loading, _tindex2) {
|
|
aiDetail52getAiContent(_uid, loading, _tindex2) {
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
@@ -15238,6 +15267,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 ? '任务描
|
|
this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
this.taskDetailLoading5.splice(this.taskDetailLoading5.indexOf(loading), 1)
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
|
|
+ this.$forceUpdate();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async aiCpote(msg, callback) {
|
|
async aiCpote(msg, callback) {
|
|
@@ -15363,7 +15393,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
callback ? callback() : ''
|
|
callback ? callback() : ''
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
- _this.aiCpotegetAiContent(_uuid, _index, callback)
|
|
|
|
|
|
+ await _this.aiCpotegetAiContent(_uuid, _index, callback)
|
|
},
|
|
},
|
|
aiCpotegetAiContent(_uid, loading, callback) {
|
|
aiCpotegetAiContent(_uid, loading, callback) {
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
// let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
@@ -15400,6 +15430,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
this.cpoteLoading[loading] = false
|
|
this.cpoteLoading[loading] = false
|
|
// 处理流数据
|
|
// 处理流数据
|
|
}
|
|
}
|
|
|
|
+ this.$forceUpdate();
|
|
};
|
|
};
|
|
},
|
|
},
|
|
createFileid(url) {
|
|
createFileid(url) {
|