|
@@ -175,6 +175,22 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</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" v-if="!yiKeTemplateArray.includes(templateid)">
|
|
<div class="info_box_t_box">
|
|
<div class="info_box_t_box">
|
|
<!-- <el-switch v-model="isuseT" active-text="是否从已有教案生成"
|
|
<!-- <el-switch v-model="isuseT" active-text="是否从已有教案生成"
|
|
@@ -6963,6 +6979,10 @@ let converter = OpenCC.Converter({
|
|
to:'cn'
|
|
to:'cn'
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+let converter2 = OpenCC.Converter({
|
|
|
|
+ from:'cn',
|
|
|
|
+ to:'hk'
|
|
|
|
+})
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -7344,7 +7364,7 @@ export default {
|
|
dialogVisibleAiCreateVideo: false,
|
|
dialogVisibleAiCreateVideo: false,
|
|
teacherText: [],
|
|
teacherText: [],
|
|
isFileSearch: true,
|
|
isFileSearch: true,
|
|
- fileIds: ['file-A81p1q02HHpJhus4nYYwtAmM'],
|
|
|
|
|
|
+ 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'],
|
|
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,
|
|
courseJie:1,
|
|
courseTime:45,
|
|
courseTime:45,
|
|
@@ -7415,7 +7435,8 @@ export default {
|
|
interFlash: true,
|
|
interFlash: true,
|
|
agentid: "",
|
|
agentid: "",
|
|
interSetting: false,
|
|
interSetting: false,
|
|
- chatid: ""
|
|
|
|
|
|
+ chatid: "",
|
|
|
|
+ languageSetting: 0, //0中文 1繁体 2英文
|
|
};
|
|
};
|
|
},
|
|
},
|
|
directives: {
|
|
directives: {
|
|
@@ -11425,6 +11446,7 @@ export default {
|
|
mode: this.mode,
|
|
mode: this.mode,
|
|
targetCourseText2: this.targetCourseText2,
|
|
targetCourseText2: this.targetCourseText2,
|
|
chatid: this.chatid,
|
|
chatid: this.chatid,
|
|
|
|
+ languageSetting: this.languageSetting,
|
|
}),
|
|
}),
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
},
|
|
},
|
|
@@ -11694,6 +11716,7 @@ export default {
|
|
mode: this.mode,
|
|
mode: this.mode,
|
|
targetCourseText2: this.targetCourseText2,
|
|
targetCourseText2: this.targetCourseText2,
|
|
chatid: this.chatid,
|
|
chatid: this.chatid,
|
|
|
|
+ languageSetting: this.languageSetting,
|
|
}),
|
|
}),
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
iresearch: this.isFileSearch ? 1 : 2,
|
|
},
|
|
},
|
|
@@ -13823,6 +13846,7 @@ export default {
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 1;
|
|
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.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.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 : 0;
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
this.courseTextBool = true
|
|
this.courseTextBool = true
|
|
}
|
|
}
|
|
@@ -13972,6 +13996,7 @@ export default {
|
|
this.mode = JSON.parse(res.data[0][0].setting).mode ? JSON.parse(res.data[0][0].setting).mode : 1;
|
|
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.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.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 : 0;
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
if(this.targetCourseText2 || (!this.teacherCourseText)){
|
|
this.courseTextBool = true
|
|
this.courseTextBool = true
|
|
}
|
|
}
|
|
@@ -15970,7 +15995,7 @@ export default {
|
|
}else if(pan == 'aiTask2'){
|
|
}else if(pan == 'aiTask2'){
|
|
this.aiJson['aiTask'] = string
|
|
this.aiJson['aiTask'] = string
|
|
}else if(pan == 'aiTask3'){
|
|
}else if(pan == 'aiTask3'){
|
|
- this.aiJson['aiTaskG2'] = string
|
|
|
|
|
|
+ this.aiJson['aiTaskG1'] = string
|
|
this.aiJson['aiTaskG2'] = string2
|
|
this.aiJson['aiTaskG2'] = string2
|
|
this.aiJson['aiTaskG3'] = string3
|
|
this.aiJson['aiTaskG3'] = string3
|
|
}else if(pan == 'aiteacherTextDetail'){
|
|
}else if(pan == 'aiteacherTextDetail'){
|
|
@@ -16520,7 +16545,7 @@ let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcourse
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
let message = `NOTICE
|
|
let message = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16552,7 +16577,7 @@ task2输出子任务名称但是不要输出序号或者前缀仅输出名称
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
let message = `NOTICE
|
|
let message = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16583,7 +16608,7 @@ ${target ? '课程目标:' + target.replaceAll('#','').replaceAll('*','').repl
|
|
}
|
|
}
|
|
let message = `NOTICE
|
|
let message = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数组的数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16615,7 +16640,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`
|
|
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
|
|
let message = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数组的数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16644,7 +16669,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`
|
|
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
|
|
let message = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数组的数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16675,7 +16700,7 @@ ${(this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || this.templateid
|
|
for(var _task = 0; _task < this.unitJson[0].chapterInfo[0].taskJson.length; _task++){
|
|
for(var _task = 0; _task < this.unitJson[0].chapterInfo[0].taskJson.length; _task++){
|
|
let message1 = `NOTICE
|
|
let message1 = `NOTICE
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16699,7 +16724,7 @@ ${msg}
|
|
|
|
|
|
let message2 = `NOTICE
|
|
let message2 = `NOTICE
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16727,7 +16752,7 @@ ${msg2}
|
|
|
|
|
|
let message3 = `NOTICE
|
|
let message3 = `NOTICE
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16761,7 +16786,7 @@ ${msg3}
|
|
}else{
|
|
}else{
|
|
let message1 = `NOTICE
|
|
let message1 = `NOTICE
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16785,7 +16810,7 @@ ${msg}
|
|
|
|
|
|
let message2 = `NOTICE
|
|
let message2 = `NOTICE
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16813,7 +16838,7 @@ ${msg2}
|
|
|
|
|
|
let message3 = `NOTICE
|
|
let message3 = `NOTICE
|
|
Role: 你是一名教师,你正在使用一个在线学习平台来教授学生,你已经完成了教案,你现在需要将教案变为学生上课用的任务单(work sheet)。该在线学习平台为每个任务提供了资源区(视频,ppt,阅读资料将放在这里),多种互动工具(学生点击工具即可上传他们的作业或者回答,这些互动工具类似kahoot一样允许教师轻松收集,统计,追踪学生作业),以及和任务绑定的目标和评价系统。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16874,7 +16899,7 @@ ${msg3}
|
|
let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcoursetext
|
|
let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcoursetext
|
|
let message = ` NOTICE
|
|
let message = ` NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16905,7 +16930,7 @@ ${(this.templateid != "4480d65a-1e48-11ef-bee5-005056b86db5") ? '## 参考上下
|
|
this.loading = true
|
|
this.loading = true
|
|
let message = `NOTICE
|
|
let message = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16934,7 +16959,7 @@ ${msg} 以及##参考资料
|
|
} else if (this.aitype == 'aiSearchFile'){
|
|
} else if (this.aitype == 'aiSearchFile'){
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -16975,6 +17000,17 @@ ${msg}。相关信息内容至少要有300tokens,可以是markdown格式
|
|
}
|
|
}
|
|
this.setAiJson(this.aitype, msg, msg2, msg3)
|
|
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) {
|
|
detailYou(message) {
|
|
this.textLoading = true
|
|
this.textLoading = true
|
|
this.ttextLoading = true
|
|
this.ttextLoading = true
|
|
@@ -17016,7 +17052,7 @@ ${msg}。相关信息内容至少要有300tokens,可以是markdown格式
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
let msg = `NOTICE
|
|
let msg = `NOTICE
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -17117,7 +17153,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -17385,7 +17421,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',//
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',//
|
|
- message: [{"type":"text", "text":messages}],
|
|
|
|
|
|
+ message: [{"type":"text", "text": this.languageSetting == 1 ? converter2(messages) : messages}],
|
|
session_name: uuidv4(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -17732,7 +17768,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
this.isOutlineCancelToken = this.ajax.setCancelSource();
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -17991,7 +18027,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
_this.isTeacherTaskCancelToken = _this.ajax.setCancelSource();
|
|
_this.isTeacherTaskCancelToken = _this.ajax.setCancelSource();
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: '',
|
|
file_ids: '',
|
|
@@ -18289,7 +18325,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18557,7 +18593,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18704,7 +18740,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18779,7 +18815,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -18826,7 +18862,19 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
"问答": { tool: 15, type: 2 },
|
|
"问答": { tool: 15, type: 2 },
|
|
"选择题": { tool: 45, type: 2 },
|
|
"选择题": { tool: 45, type: 2 },
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if(_this.languageSetting == 1){
|
|
|
|
+ toolsJson = JSON.parse(converter2(JSON.stringify(toolsJson)))
|
|
|
|
+ }else if(_this.languageSetting == 2){
|
|
|
|
+ toolsJson = {
|
|
|
|
+ "Presentation 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
|
|
let _task = tArray
|
|
if(!_task.toolChoose){
|
|
if(!_task.toolChoose){
|
|
console.log("error_________________JSON不对重新生成");
|
|
console.log("error_________________JSON不对重新生成");
|
|
@@ -18910,7 +18958,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19006,7 +19054,7 @@ ${this.courseText && this.aiCallBack == 2 ? '注意,优化原有的<参考内
|
|
if(type == 15){
|
|
if(type == 15){
|
|
messages = `NOTICE
|
|
messages = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -19033,7 +19081,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
}else if(type == 45){
|
|
}else if(type == 45){
|
|
messages = `NOTICE
|
|
messages = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -19063,7 +19111,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19174,7 +19222,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
|
|
if(type == 15){
|
|
if(type == 15){
|
|
messages = `NOTICE
|
|
messages = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -19201,7 +19249,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
}else if(type == 45){
|
|
}else if(type == 45){
|
|
messages = `NOTICE
|
|
messages = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容),并生成需要的JSON数据。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -19231,7 +19279,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19473,7 +19521,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -19671,7 +19719,7 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_this.taskCount].taskDetail3.replace
|
|
}
|
|
}
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -19710,7 +19758,7 @@ ${msg}
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -19858,7 +19906,7 @@ ${msg}
|
|
let target = _this.targetCourseText2 ? _this.targetCourseText2 : _this.targetcoursetext
|
|
let target = _this.targetCourseText2 ? _this.targetCourseText2 : _this.targetcoursetext
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,内容不要以markdown形式出现,只需要口语化的形式。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -19908,7 +19956,7 @@ ${target ? '课程目标:' + target.replaceAll('#','').replaceAll('*','').repl
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -20000,7 +20048,7 @@ ${target ? '课程目标:' + target.replaceAll('#','').replaceAll('*','').repl
|
|
}
|
|
}
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,内容不要以markdown形式出现,只需要口语化的形式。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -20049,7 +20097,7 @@ ${taskArray.length ? '其他任务大纲内容' + taskArray.join(',') : ''}
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -20197,7 +20245,7 @@ ${taskArray.length ? '其他任务大纲内容' + taskArray.join(',') : ''}
|
|
|
|
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是一名老师,可以给与学生的指示,对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写,内容不要以markdown形式出现,只需要口语化的形式。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -20233,7 +20281,7 @@ ${_this.aiCallBack.taskDetail}
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -20368,7 +20416,7 @@ ${_this.aiCallBack.taskDetail}
|
|
// **重点考虑该任务及工具名和工具内容的情况下*
|
|
// **重点考虑该任务及工具名和工具内容的情况下*
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是一名老师,可以给与学生的指示,对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写,内容不要以markdown形式出现,只需要口语化的形式。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -20404,7 +20452,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -20559,7 +20607,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
|
|
|
|
// **重点考虑该任务详情**
|
|
// **重点考虑该任务详情**
|
|
// let messages = `
|
|
// 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".
|
|
// ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
|
|
|
|
|
|
// #Context
|
|
// #Context
|
|
@@ -20578,7 +20626,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
|
|
// # Format example
|
|
// # Format example
|
|
// [{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5},{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5},{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5}]`
|
|
// [{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5},{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5},{"value":"评价维度","detail":"维度描述",target:"评价目标","score":5}]`
|
|
let messages = `
|
|
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".
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
|
|
|
|
|
|
#Context
|
|
#Context
|
|
@@ -20617,7 +20665,7 @@ ${msg} 优化核心素养、目标、评价标准,输出格式和内容要求
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -20729,7 +20777,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`
|
|
_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 = `
|
|
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".
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
|
|
|
|
|
|
--------
|
|
--------
|
|
@@ -20771,7 +20819,7 @@ ${_text2}`
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -20921,7 +20969,8 @@ ${_text2}`
|
|
}
|
|
}
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
|
|
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
|
|
#Context
|
|
## 要求
|
|
## 要求
|
|
@@ -20961,7 +21010,7 @@ ${(_this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" || _this.templatei
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -21152,7 +21201,8 @@ let courseText = this.courseText ? this.courseText : this.teacherCourseText
|
|
let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcoursetext
|
|
let target = this.targetCourseText2 ? this.targetCourseText2 : this.targetcoursetext
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,可以利用file_search的方式完整的去分析文件内容(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)
|
|
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}
|
|
${msg}
|
|
|
|
|
|
@@ -21188,7 +21238,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -21347,7 +21397,7 @@ ${this.aitype == 'aiCpote4' ? '## 目标层\n'+this.cpote['cpote3'] : ''}`
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -21383,7 +21433,7 @@ ${this.teacherCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -21547,7 +21597,7 @@ ${this.teacherCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
// ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -21584,7 +21634,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -21753,7 +21803,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -21789,7 +21839,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -21875,6 +21925,38 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
console.error(err);
|
|
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) {
|
|
async aitargetTextDetail22(msg,msg2) {
|
|
let _this = this
|
|
let _this = this
|
|
let fileid = []
|
|
let fileid = []
|
|
@@ -21910,7 +21992,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let messages = `NOTICE
|
|
let messages = `NOTICE
|
|
Role: 你是创建课程的老师,内容以markdown形式出现(注:如果文件内容里面不包含需要检索的内容,就不引用文件内容)。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -21947,7 +22029,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
|
|
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -22133,7 +22215,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
// })
|
|
// })
|
|
let params = {
|
|
let params = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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,
|
|
session_name: _uuid,
|
|
userId: _this.userid,
|
|
userId: _this.userid,
|
|
uid: _uuid,
|
|
uid: _uuid,
|
|
@@ -22199,7 +22281,7 @@ ${this.targetCourseText && this.aiCallBack == 2 ? '注意,优化原有的<参
|
|
}
|
|
}
|
|
let message = `NOTICE
|
|
let message = `NOTICE
|
|
Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
|
|
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".
|
|
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.
|
|
|
|
|
|
@@ -22285,7 +22367,7 @@ ${msg}
|
|
// });
|
|
// });
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: [],
|
|
file_ids: [],
|
|
@@ -22462,7 +22544,7 @@ ${msg}
|
|
|
|
|
|
let parm = {
|
|
let parm = {
|
|
assistant_id: '6063369f-289a-11ef-8bf4-12e77c4cb76b',
|
|
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(),
|
|
session_name: uuidv4(),
|
|
userId: this.userid,
|
|
userId: this.userid,
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
file_ids: fileid.length ? [...fileid] : '',
|
|
@@ -22565,6 +22647,7 @@ ${msg}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.selectFileid();
|
|
this.selectFileid();
|
|
|
|
+ this.selectAiFileid();
|
|
this.getStudent();
|
|
this.getStudent();
|
|
this.getTeacher();
|
|
this.getTeacher();
|
|
this.getClass();
|
|
this.getClass();
|