|
@@ -262,24 +262,16 @@ ${_this.outline.replaceAll('#','').replaceAll('*','').replaceAll('-','').replace
|
|
|
message = `# 任务
|
|
|
请根据参考资料,生成关于${this.courseName},为教师生成这节课的教学ppt的大纲,大纲的主要内容课程知识点的讲解与相关练习和测试。你的输出应该符合#输出格式
|
|
|
|
|
|
-# 工作流
|
|
|
-1.从用户提供的参考资料中提取3个最重要的学科概念${mclass.length ? "(水平限制在{面向年级}中)" : ""},并输出。
|
|
|
-2.分解每个学科概念为几个子知识点
|
|
|
-3.简要描述每个知识点
|
|
|
-4.生成3个测试题以考察学生的掌握情况
|
|
|
-
|
|
|
${mclass.length ? "#参考资料\n面向年级:" + mclass.join(",") : ""}
|
|
|
|
|
|
# 输出格式
|
|
|
-- 标题:学科概念1
|
|
|
- 1.知识点:知识点1
|
|
|
- 2.知识点:知识点2
|
|
|
- 3.知识点:知识点3
|
|
|
+- 标题:
|
|
|
+ --步骤
|
|
|
+ --知识点
|
|
|
|
|
|
# 限制
|
|
|
-1.如果有参考资料请根据参考资料,如果没有无需根据参考资料进行,随意发挥。
|
|
|
-2.你不能输出错误的知识。
|
|
|
-3.你不能输出违反伦理的内容。`;
|
|
|
+- 你不能输出错误的知识,如果你实在不清楚,输出“对不起,我不确定”
|
|
|
+- 你不能输出违反伦理的内容`;
|
|
|
}else if(this.courseState == 5){
|
|
|
message = `# 任务
|
|
|
请根据<任务教案>,为教师生成本的教学ppt的大纲,大纲包含各环节的步骤,学科知识点。
|
|
@@ -408,7 +400,7 @@ ${mclass.length ? "面向年级:" + mclass.join(",") : ""}
|
|
|
console.log(error);
|
|
|
});
|
|
|
},
|
|
|
- createPpt(array) {
|
|
|
+ createPpt() {
|
|
|
// 1. 创建PPT
|
|
|
const pres = new Pptxgen();
|
|
|
const _slideTou = pres.addSlide();
|
|
@@ -457,7 +449,11 @@ ${mclass.length ? "面向年级:" + mclass.join(",") : ""}
|
|
|
});
|
|
|
let tempResult3 = '';
|
|
|
if (typeof array[i].points == 'object') {
|
|
|
- tempResult3 = array[i].points.join('\n')
|
|
|
+ if (Array.isArray(array[i].points)) {
|
|
|
+ tempResult3 = array[i].points.join('\n')
|
|
|
+ } else {
|
|
|
+ tempResult3 = JSON.stringify(array[i].points)
|
|
|
+ }
|
|
|
} else {
|
|
|
tempResult3 = array[i].points
|
|
|
}
|