|
@@ -175,15 +175,31 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="info_box_t" v-if="!yiKeTemplateArray.includes(templateid)">
|
|
|
+ <div class="info_box_t_box">
|
|
|
+ <span>输出语言:</span>
|
|
|
+ <el-radio-group v-model="languageSetting" style="display: flex; align-items: center" @change="changeIsuseT">
|
|
|
+ <div class="all_choose info_radio">
|
|
|
+ <el-radio :label="0">简体中文</el-radio>
|
|
|
+ </div>
|
|
|
+ <div class="all_choose info_radio" style="margin-left: 10px">
|
|
|
+ <el-radio :label="1">繁体中文</el-radio>
|
|
|
+ </div>
|
|
|
+ <div class="all_choose info_radio" style="margin-left: 10px">
|
|
|
+ <el-radio :label="2">English</el-radio>
|
|
|
+ </div>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="info_box_t" v-if="!yiKeTemplateArray.includes(templateid)">
|
|
|
<div class="info_box_t_box">
|
|
|
<!-- <el-switch v-model="isuseT" active-text="是否从已有教案生成"
|
|
|
style="justify-content: center; min-width: 175px"></el-switch> -->
|
|
|
<span>生成模式:</span>
|
|
|
- <el-radio-group v-model="isuseT" style="display: flex; align-items: center">
|
|
|
- <!-- <div class="all_choose info_radio">
|
|
|
+ <el-radio-group v-model="isuseT" style="display: flex; align-items: center" @change="changeIsuseT">
|
|
|
+ <div class="all_choose info_radio">
|
|
|
<el-radio :label="1">引导模式生成</el-radio>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div class="all_choose info_radio" style="margin-left: 10px">
|
|
|
<el-radio :label="true">从已有教案生成</el-radio>
|
|
|
</div>
|
|
@@ -954,7 +970,7 @@
|
|
|
<div class="inter_box" v-show="interPan">
|
|
|
<iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;" :src="interUrl" frameborder="0" v-if="interFlash && chatid" class="interIframe"></iframe>
|
|
|
</div>
|
|
|
- <div style="width: calc(100%);height: 100%" class='op_task_box'>
|
|
|
+ <div style="width: calc(100%);height: 100%" class='op_task_box' :class="{inter_Detailbox: !courseTextB && interPan}">
|
|
|
<textarea style="height: 500px" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
|
placeholder="请输入课程简要描述" v-if="courseTextB && interPan"></textarea>
|
|
|
<textarea v-autoHeight="68" rows="2" class="binfo_input binfo_textarea" cols v-model="courseText"
|
|
@@ -6966,6 +6982,10 @@ let converter = OpenCC.Converter({
|
|
|
to:'hk'
|
|
|
})
|
|
|
|
|
|
+let converter2 = OpenCC.Converter({
|
|
|
+ from:'cn',
|
|
|
+ to:'hk'
|
|
|
+})
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -7347,7 +7367,7 @@ export default {
|
|
|
dialogVisibleAiCreateVideo: false,
|
|
|
teacherText: [],
|
|
|
isFileSearch: true,
|
|
|
- fileIds: ['file-LyRnVpjKpTY4Vwhhi89eBV6o', 'file-INnyqfzOuxYWjuMvWowhOpD0'],
|
|
|
+ fileIds: [],//'file-A81p1q02HHpJhus4nYYwtAmM'
|
|
|
templatePan: ['0e7966d6-1e49-11ef-bee5-005056b86db5','60d153e3-1e49-11ef-bee5-005056b86db5','7f3e28b7-1e66-11ef-bee5-005056b86db5','9dd4bb76-1e48-11ef-bee5-005056b86db5','ab317f23-1e66-11ef-bee5-005056b86db5'],
|
|
|
courseJie:1,
|
|
|
courseTime:45,
|
|
@@ -7418,7 +7438,8 @@ export default {
|
|
|
interFlash: true,
|
|
|
agentid: "",
|
|
|
interSetting: false,
|
|
|
- chatid: ""
|
|
|
+ chatid: "",
|
|
|
+ languageSetting: 1, //0中文 1繁体 2英文
|
|
|
};
|
|
|
},
|
|
|
directives: {
|
|
@@ -7586,9 +7607,9 @@ export default {
|
|
|
let sagentid = this.aiJson.sagentid
|
|
|
let url = ''
|
|
|
if(sagentid){
|
|
|
- url = `https://beta.cloud.cocorobo.cn/aigpt/#/js?muti_agent_id=${agentid}&isPbl=true&session_id=${this.chatid}`//+'&muti_agent_id2='+agentid
|
|
|
+ url = `https://cloud.cocorobo.hk/aigpt/#/js?muti_agent_id=${agentid}&isPbl=true&session_id=${this.chatid}`//+'&muti_agent_id2='+agentid
|
|
|
}else{
|
|
|
- url = `https://beta.cloud.cocorobo.cn/aigpt/#/js?muti_agent_id=${agentid}&isPbl=true&session_id=${this.chatid}`//+'&muti_agent_id2='+agentid
|
|
|
+ url = `https://cloud.cocorobo.hk/aigpt/#/js?muti_agent_id=${agentid}&isPbl=true&session_id=${this.chatid}`//+'&muti_agent_id2='+agentid
|
|
|
}
|
|
|
return url;
|
|
|
},
|
|
@@ -11428,6 +11449,7 @@ export default {
|
|
|
mode: this.mode,
|
|
|
targetCourseText2: this.targetCourseText2,
|
|
|
chatid: this.chatid,
|
|
|
+ languageSetting: this.languageSetting,
|
|
|
}),
|
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
|
},
|
|
@@ -11697,6 +11719,7 @@ export default {
|
|
|
mode: this.mode,
|
|
|
targetCourseText2: this.targetCourseText2,
|
|
|
chatid: this.chatid,
|
|
|
+ languageSetting: this.languageSetting,
|
|
|
}),
|
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
|
},
|
|
@@ -13685,7 +13708,7 @@ export default {
|
|
|
console.log("这是新增课程");
|
|
|
this.selectAllType();
|
|
|
this.chatid = uuidv4();
|
|
|
- this.courseTextB = true
|
|
|
+ // this.courseTextB = false
|
|
|
} else {
|
|
|
this.isOutline = true
|
|
|
this.isOutline2 = true
|
|
@@ -13826,6 +13849,7 @@ export default {
|
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 1;
|
|
|
this.targetCourseText2 = JSON.parse(res.data[0][0].setting).targetCourseText2 ? JSON.parse(res.data[0][0].setting).targetCourseText2 : '';
|
|
|
this.chatid = JSON.parse(res.data[0][0].setting).chatid ? JSON.parse(res.data[0][0].setting).chatid : uuidv4();
|
|
|
+ this.languageSetting = (JSON.parse(res.data[0][0].setting).languageSetting || JSON.parse(res.data[0][0].setting).languageSetting == 0) ? JSON.parse(res.data[0][0].setting).languageSetting : 1;
|
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
|
this.courseTextBool = true
|
|
|
}
|
|
@@ -13975,6 +13999,7 @@ export default {
|
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 1;
|
|
|
this.targetCourseText2 = JSON.parse(res.data[0][0].setting).targetCourseText2 ? JSON.parse(res.data[0][0].setting).targetCourseText2 : '';
|
|
|
this.chatid = JSON.parse(res.data[0][0].setting).chatid ? JSON.parse(res.data[0][0].setting).chatid : uuidv4();
|
|
|
+ this.languageSetting = (JSON.parse(res.data[0][0].setting).languageSetting || JSON.parse(res.data[0][0].setting).languageSetting == 0) ? JSON.parse(res.data[0][0].setting).languageSetting : 1;
|
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
|
this.courseTextBool = true
|
|
|
}
|
|
@@ -15973,7 +15998,7 @@ export default {
|
|
|
}else if(pan == 'aiTask2'){
|
|
|
this.aiJson['aiTask'] = string
|
|
|
}else if(pan == 'aiTask3'){
|
|
|
- this.aiJson['aiTaskG2'] = string
|
|
|
+ this.aiJson['aiTaskG1'] = string
|
|
|
this.aiJson['aiTaskG2'] = string2
|
|
|
this.aiJson['aiTaskG3'] = string3
|
|
|
}else if(pan == 'aiteacherTextDetail'){
|
|
@@ -16065,6 +16090,17 @@ export default {
|
|
|
|
|
|
this.courseTextBool = true
|
|
|
},
|
|
|
+ changeIsuseT(){
|
|
|
+ if(this.isuseT == 1){
|
|
|
+ this.courseTextB = false
|
|
|
+ }else{
|
|
|
+ if(this.courseText){
|
|
|
+ this.courseTextB = false
|
|
|
+ }else{
|
|
|
+ this.courseTextB = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
openInterPanSetting(){
|
|
|
this.interSetting = !this.interSetting
|
|
|
if(this.interSetting){
|
|
@@ -16078,7 +16114,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
setAgentid(){
|
|
|
- if(this.agentid.trim()){
|
|
|
+ if(!this.agentid.trim()){
|
|
|
this.$message.error('请输入工作流链接')
|
|
|
return;
|
|
|
}
|
|
@@ -16529,7 +16565,7 @@ let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcourse
|
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
|
let message = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16556,7 +16592,7 @@ ${txt2}
|
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
|
let message = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16587,7 +16623,7 @@ ${target ? '课程目标:' + target.replaceAll('#','').replaceAll('*','').repl
|
|
|
}
|
|
|
let message = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16619,7 +16655,7 @@ ${(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid
|
|
|
var _text = `任务名称:${this.unitJson[0].chapterInfo[0].taskJson[_task].task} 任务描述:${this.unitJson[0].chapterInfo[0].taskJson[_task].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
|
|
|
let message = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16648,7 +16684,7 @@ ${(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid
|
|
|
var _text = `任务名称:${this.unitJson[0].chapterInfo[0].taskJson[this.aiCallBack[0]].task} 任务描述:${this.unitJson[0].chapterInfo[0].taskJson[this.aiCallBack[0]].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
|
|
|
let message = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16679,7 +16715,7 @@ ${(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid
|
|
|
for(var _task = 0; _task < this.unitJson[0].chapterInfo[0].taskJson.length; _task++){
|
|
|
let message1 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16703,7 +16739,7 @@ ${msg}
|
|
|
|
|
|
let message2 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16717,21 +16753,23 @@ ${msg2}
|
|
|
|
|
|
# 输出格式与要求
|
|
|
互动工具列表
|
|
|
-工具名:表格
|
|
|
+工具名:${this.languageSetting == 2 ? 'Diagram Tool' : '表格'}
|
|
|
工具指引:同学们,在完成本次STEM小车实验时,我们需要使用表格工具来记录和整理实验数据。表格工具就像一个电子版的记录本,它不仅可以帮助我们准确记录数据,还能自动计算和生成图表,方便我们分析实验结果。在第一行,每个单元格中输入我们要记录的变量名称,比如“时间(秒)”、“距离(米)”、“速度(米/秒)”等。接下来,在实验中,我们会把每次测试的结果依次填入相应的单元格中。记得每一行代表一次完整的实验测试哦。
|
|
|
|
|
|
-工具名:文档
|
|
|
+工具名:${this.languageSetting == 2 ? 'Document tool' : '文档'}
|
|
|
工具指引:在实验数据整理好之后,我们接下来要用文档工具撰写实验报告。这份报告不仅是对我们实验的总结,也是展示我们分析和思考能力的好机会。文档工具就像一本电子笔记本,可以帮助我们把想法和数据清晰地展示出来。该份实验报告需要包括以下内容:1.实验背景: 简单介绍实验的目的,比如“我们这次实验的目的是通过小车演示,理解速度和加速度的关系”。用简洁的语言说明你为什么要做这个实验。\n2.实验方法: 详细描述你是如何进行实验的,包括实验步骤和使用的工具。例如,你可以写“我们将小车放在一个倾斜的平面上,记录它在不同时间间隔下的距离”。\n 3.数据分析: 这部分是核心内容。你可以将表格工具生成的图表插入到文档中,并解释图表显示的结果。例如,你可以写“从图表中可以看出,随着时间的增加,小车的速度逐渐加快,这说明……”。\n 4.结论与建议: 最后,总结你在实验中得出的结论,比如“小车在光滑表面上的加速度较大”,并提出一些改进实验或进一步研究的建议。
|
|
|
|
|
|
-工具名称:选择题
|
|
|
+工具名称:${this.languageSetting == 2 ? 'Choice tool' : '选择题'}
|
|
|
工具指引:同学们,老师想要考察一下你对“热传递”这一概念的理解和掌握程度。请仔细阅读每个问题,并给出准确的答案哦~
|
|
|
|
|
|
+${this.languageSetting == 2 ? '还有以下工具:Mind Map Tool、Spreadsheet tool、Q&A Tool' : ''}
|
|
|
+
|
|
|
# Format example
|
|
|
{"toolChoose":[{"tool":"工具名","detail":"工具描述"},{"tool":"工具名","detail":"工具描述"}]}`
|
|
|
|
|
|
let message3 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16765,7 +16803,7 @@ ${msg3}
|
|
|
}else{
|
|
|
let message1 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16789,7 +16827,7 @@ ${msg}
|
|
|
|
|
|
let message2 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16803,21 +16841,23 @@ ${msg2}
|
|
|
|
|
|
# 输出格式与要求
|
|
|
互动工具列表
|
|
|
-工具名:表格
|
|
|
+工具名:${this.languageSetting == 2 ? 'Diagram Tool' : '表格'}
|
|
|
工具指引:同学们,在完成本次STEM小车实验时,我们需要使用表格工具来记录和整理实验数据。表格工具就像一个电子版的记录本,它不仅可以帮助我们准确记录数据,还能自动计算和生成图表,方便我们分析实验结果。在第一行,每个单元格中输入我们要记录的变量名称,比如“时间(秒)”、“距离(米)”、“速度(米/秒)”等。接下来,在实验中,我们会把每次测试的结果依次填入相应的单元格中。记得每一行代表一次完整的实验测试哦。
|
|
|
|
|
|
-工具名:文档
|
|
|
+工具名:${this.languageSetting == 2 ? 'Document tool' : '文档'}
|
|
|
工具指引:在实验数据整理好之后,我们接下来要用文档工具撰写实验报告。这份报告不仅是对我们实验的总结,也是展示我们分析和思考能力的好机会。文档工具就像一本电子笔记本,可以帮助我们把想法和数据清晰地展示出来。该份实验报告需要包括以下内容:1.实验背景: 简单介绍实验的目的,比如“我们这次实验的目的是通过小车演示,理解速度和加速度的关系”。用简洁的语言说明你为什么要做这个实验。\n2.实验方法: 详细描述你是如何进行实验的,包括实验步骤和使用的工具。例如,你可以写“我们将小车放在一个倾斜的平面上,记录它在不同时间间隔下的距离”。\n 3.数据分析: 这部分是核心内容。你可以将表格工具生成的图表插入到文档中,并解释图表显示的结果。例如,你可以写“从图表中可以看出,随着时间的增加,小车的速度逐渐加快,这说明……”。\n 4.结论与建议: 最后,总结你在实验中得出的结论,比如“小车在光滑表面上的加速度较大”,并提出一些改进实验或进一步研究的建议。
|
|
|
|
|
|
-工具名称:选择题
|
|
|
+工具名称:${this.languageSetting == 2 ? 'Choice tool' : '选择题'}
|
|
|
工具指引:同学们,老师想要考察一下你对“热传递”这一概念的理解和掌握程度。请仔细阅读每个问题,并给出准确的答案哦~
|
|
|
|
|
|
+${this.languageSetting == 2 ? '还有以下工具:Mind Map Tool、Spreadsheet tool、Q&A Tool' : ''}
|
|
|
+
|
|
|
# Format example
|
|
|
{"toolChoose":[{"tool":"工具名","detail":"工具描述"},{"tool":"工具名","detail":"工具描述"}]}`
|
|
|
|
|
|
let message3 = `NOTICE
|
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16878,7 +16918,7 @@ ${msg3}
|
|
|
let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcoursetext
|
|
|
let message = ` NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16909,7 +16949,7 @@ ${(this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5") ? '## 参考上下
|
|
|
this.loading = true
|
|
|
let message = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16938,7 +16978,7 @@ ${msg} 以及##参考资料
|
|
|
} else if (this.aitype == 'aiSearchFile'){
|
|
|
let messages = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -16979,6 +17019,17 @@ ${msg}。相关信息内容至少要有300tokens,可以是markdown格式
|
|
|
}
|
|
|
this.setAiJson(this.aitype, msg, msg2, msg3)
|
|
|
},
|
|
|
+ getLang(){
|
|
|
+ let lang = ''
|
|
|
+ if(this.languageSetting == 0){
|
|
|
+ lang = 'Chinese.'
|
|
|
+ }else if(this.languageSetting == 1){
|
|
|
+ lang = 'Traditional Chinese.'
|
|
|
+ }else if(this.languageSetting == 2){
|
|
|
+ lang = 'English.'
|
|
|
+ }
|
|
|
+ return lang
|
|
|
+ },
|
|
|
detailYou(message) {
|
|
|
this.textLoading = true
|
|
|
this.ttextLoading = true
|
|
@@ -17020,7 +17071,7 @@ ${msg}。相关信息内容至少要有300tokens,可以是markdown格式
|
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
|
let msg = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -17121,7 +17172,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -17388,8 +17439,8 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
// });
|
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
|
let parm = {
|
|
|
- assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages}],
|
|
|
+ assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',//
|
|
|
+ message: [{"type":"text", "text": this.languageSetting == 1 ? converter2(messages) : messages}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -17736,7 +17787,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -17995,7 +18046,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
_this.isTeacherTaskCancelToken = _this.ajax.setCancelSource();
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: '',
|
|
@@ -18293,7 +18344,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18561,7 +18612,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18708,7 +18759,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18783,7 +18834,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18830,7 +18881,19 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
"问答": { tool: 15, type: 2 },
|
|
|
"选择题": { tool: 45, type: 2 },
|
|
|
}
|
|
|
-
|
|
|
+ if(_this.languageSetting == 1){
|
|
|
+ toolsJson = JSON.parse(converter2(JSON.stringify(toolsJson)))
|
|
|
+ }else if(_this.languageSetting == 2){
|
|
|
+ toolsJson = {
|
|
|
+ "Mind Map Tool": { tool: 1, type: 1 },
|
|
|
+ "Document tool": { tool: 52, type: 1 },
|
|
|
+ "Diagram Tool": { tool: 3, type: 1 },
|
|
|
+ "Spreadsheet tool": { tool: 48, type: 1 },
|
|
|
+ "作业提交": { tool: 16, type: 2 },
|
|
|
+ "Q&A Tool": { tool: 15, type: 2 },
|
|
|
+ "Choice tool": { tool: 45, type: 2 },
|
|
|
+ }
|
|
|
+ }
|
|
|
let _task = tArray
|
|
|
if(!_task.toolChoose){
|
|
|
console.log("error_________________JSON不对重新生成");
|
|
@@ -18914,7 +18977,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19010,7 +19073,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
if(type == 15){
|
|
|
messages = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -19037,7 +19100,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
|
}else if(type == 45){
|
|
|
messages = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -19067,7 +19130,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19178,7 +19241,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
|
if(type == 15){
|
|
|
messages = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -19205,7 +19268,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
|
}else if(type == 45){
|
|
|
messages = `NOTICE
|
|
|
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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -19235,7 +19298,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19477,7 +19540,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19675,7 +19738,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
|
}
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -19714,7 +19777,7 @@ ${msg}
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -19873,7 +19936,7 @@ ${msg}
|
|
|
}
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容不要以markdown形式出现,只需要口语化的形式。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -19919,7 +19982,7 @@ ${txt}
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -20021,7 +20084,7 @@ ${txt}
|
|
|
}
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容不要以markdown形式出现,只需要口语化的形式。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -20067,7 +20130,7 @@ ${txt}
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages) : messages}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -20215,7 +20278,7 @@ ${txt}
|
|
|
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是一名老师,可以给与学生的指示,对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写,内容不要以markdown形式出现,只需要口语化的形式。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -20251,7 +20314,7 @@ ${_this.aiCallBack.taskDetail}
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ")) : messages.replaceAll('\n', " ")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -20386,7 +20449,7 @@ ${_this.aiCallBack.taskDetail}
|
|
|
// **重点考虑该任务及工具名和工具内容的情况下*
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是一名老师,可以给与学生的指示,对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写,内容不要以markdown形式出现,只需要口语化的形式。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -20422,7 +20485,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -20577,7 +20640,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
|
|
|
|
// **重点考虑该任务详情**
|
|
|
// let messages = `
|
|
|
-// 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: ${this.getLang()}
|
|
|
// ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
|
|
|
|
|
|
// #Context
|
|
@@ -20596,7 +20659,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
|
// # Format example
|
|
|
// [{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5},{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5},{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5}]`
|
|
|
let messages = `
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
|
|
|
|
|
|
#Context
|
|
@@ -20635,7 +20698,7 @@ ${msg} 优化核心素养、目标、评价标准,输出格式和内容要求
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: _this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -20747,7 +20810,7 @@ ${msg} 优化核心素养、目标、评价标准,输出格式和内容要求
|
|
|
_text2 += `任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[i].task} 教案描述:${_this.unitJson[0].chapterInfo[0].taskJson[i].taskDetail3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')} \n`
|
|
|
}
|
|
|
let messages = `
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
|
|
|
|
|
|
--------
|
|
@@ -20789,7 +20852,7 @@ ${_text2}`
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -20939,7 +21002,8 @@ ${_text2}`
|
|
|
}
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
|
|
|
-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: ${this.getLang()}
|
|
|
+ATTENTION: follow "Language"
|
|
|
|
|
|
#Context
|
|
|
## 要求
|
|
@@ -20979,7 +21043,7 @@ ${(_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templatei
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -21170,7 +21234,8 @@ let courseText = this.courseText ? this.courseText : this.teacherCourseText
|
|
|
let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcoursetext
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
|
|
|
-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: ${this.getLang()}
|
|
|
+ATTENTION: follow "Language"
|
|
|
|
|
|
${msg}
|
|
|
|
|
@@ -21206,7 +21271,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -21365,7 +21430,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -21401,7 +21466,7 @@ ${this.teacherCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -21565,7 +21630,7 @@ ${this.teacherCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -21602,7 +21667,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -21771,7 +21836,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -21807,7 +21872,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -21893,6 +21958,38 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ selectAiFileid(){
|
|
|
+ let params = {
|
|
|
+ oid: this.oid,
|
|
|
+ };
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api + "selectAiFileid", params)
|
|
|
+ .then((res) => {
|
|
|
+ let fileIds = []
|
|
|
+ for(var i = 0; i < res.data[0].length; i++){
|
|
|
+ fileIds.push(res.data[0][i].fileid)
|
|
|
+ }
|
|
|
+ this.fileIds = fileIds
|
|
|
+ if(res.data[1].length){
|
|
|
+ fileIds = []
|
|
|
+ for(var i = 0; i < res.data[1].length; i++){
|
|
|
+ fileIds.push(res.data[0][i].fileid)
|
|
|
+ }
|
|
|
+ this.fileidArray = fileIds
|
|
|
+ }
|
|
|
+ if(res.data[2].length){
|
|
|
+ fileIds = []
|
|
|
+ for(var i = 0; i < res.data[2].length; i++){
|
|
|
+ fileIds.push(res.data[0][i].fileid)
|
|
|
+ }
|
|
|
+ this.fileidArray = fileIds
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
async aitargetTextDetail22(msg,msg2) {
|
|
|
let _this = this
|
|
|
let fileid = []
|
|
@@ -21928,7 +22025,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let messages = `NOTICE
|
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -21965,7 +22062,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -22151,7 +22248,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
// })
|
|
|
let params = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: _uuid,
|
|
|
userId: _this.userid,
|
|
|
uid: _uuid,
|
|
@@ -22217,7 +22314,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
}
|
|
|
let message = `NOTICE
|
|
|
Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
|
|
|
-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: ${this.getLang()}
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content.
|
|
|
|
|
@@ -22303,7 +22400,7 @@ ${msg}
|
|
|
// });
|
|
|
let parm = {
|
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":message.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: [],
|
|
@@ -22480,7 +22577,7 @@ ${msg}
|
|
|
|
|
|
let parm = {
|
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
|
- message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
+ message: [{"type":"text", "text":this.languageSetting == 1 ? converter2(messages.replaceAll('\n', " ").replaceAll('*', "")) : messages.replaceAll('\n', " ").replaceAll('*', "")}],
|
|
|
session_name: uuidv4(),
|
|
|
userId: this.userid,
|
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -22583,6 +22680,7 @@ ${msg}
|
|
|
},
|
|
|
created() {
|
|
|
this.selectFileid();
|
|
|
+ this.selectAiFileid();
|
|
|
this.getStudent();
|
|
|
this.getTeacher();
|
|
|
this.getClass();
|
|
@@ -26990,8 +27088,47 @@ ol {
|
|
|
min-width: calc(50%);
|
|
|
min-height: 500px;
|
|
|
margin-right: 10px;
|
|
|
+ border: 1px solid #c7c7c7;
|
|
|
+ border-radius: 0px 5px 5px 5px;
|
|
|
+ overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
|
|
|
+.inter_box::before{
|
|
|
+ content:'对话区';
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ display: block;
|
|
|
+ padding: 8px 10px;
|
|
|
+ background: #e0eafb;
|
|
|
+ color: #98a0ac;
|
|
|
+ font-size: 14px;
|
|
|
+ border-radius: 0 15px 15px 0;
|
|
|
}
|
|
|
+
|
|
|
+.inter_Detailbox{
|
|
|
+ border: 1px solid #c7c7c7;
|
|
|
+ border-radius: 0px 5px 5px 5px;
|
|
|
+ overflow: hidden;
|
|
|
+ position: relative;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
+
|
|
|
+.inter_Detailbox::before{
|
|
|
+ content:'编辑区';
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ display: block;
|
|
|
+ padding: 8px 10px;
|
|
|
+ background: #e0eafb;
|
|
|
+ color: #98a0ac;
|
|
|
+ font-size: 14px;
|
|
|
+ border-radius: 0 15px 15px 0;
|
|
|
+}
|
|
|
+
|
|
|
.inter_box > iframe{
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
@@ -27014,6 +27151,7 @@ ol {
|
|
|
border-radius: 5px;
|
|
|
box-shadow: 0px 0px 2px 1px #00000017;
|
|
|
padding: 10px;
|
|
|
+ z-index: 999;
|
|
|
}
|
|
|
.panel_title{
|
|
|
text-align: center;
|