lsc преди 8 месеца
родител
ревизия
777e1ec217

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.39b46caed406dae30a78ceb65a0983e0.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.d5f0d79dbb0d92c052d4.js></script><script type=text/javascript src=./static/js/app.d25e05f43ca18e234127.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.29d734d96bbd7d5cad706216ad0204e3.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.571c38d63f24b1ae9e16.js></script><script type=text/javascript src=./static/js/vendor.d5f0d79dbb0d92c052d4.js></script><script type=text/javascript src=./static/js/app.5af0a1e97b5d9fcbab06.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/static/css/app.29d734d96bbd7d5cad706216ad0204e3.css


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/static/css/app.29d734d96bbd7d5cad706216ad0204e3.css.map


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/static/js/app.5af0a1e97b5d9fcbab06.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/static/js/app.5af0a1e97b5d9fcbab06.js.map


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


+ 43 - 37
src/components/pages/aiAddCourse/addCourse.vue

@@ -814,9 +814,9 @@
                         <div class="op_remark">*可以将需要优化的建议添加在任务描述后,点击“智能优化”,自动进行修改</div>
                         <div style="display: flex;">
                           <el-tooltip effect="light" content="右键单击可配置提示词" placement="bottom">
-                            <!-- <div class="r_pub_button_op"
+                            <div class="r_pub_button_op"
                               @contextmenu.prevent="openAiDialog(1, 'teacherDetail2', item.taskDetail3, index)"
-                              @click="openAiDialog(2, 'teacherDetail2', item.taskDetail3, index)">智能优化</div> -->
+                              @click="openAiDialog(2, 'teacherDetail2', item.taskDetail3, index)">智能优化</div>
                           </el-tooltip>
                           <div class="r_pub_button_edit" style="margin-left:10px" @click="editTask3(index)">{{
                             item.isTask3 ? '确定' : '编辑'}}</div>
@@ -13758,7 +13758,7 @@ ${msg} 为**每个教学任务分别输出**以下内容。
 ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '#目标层\n'+this.cpote.cpote3.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','')+'\n\n#任务簇\n'+this.cpote.cpote4.replaceAll('#','').replaceAll('*','').replaceAll('-','').replaceAll('\n','') : ''}
 
 ## 格式要求
-任务数量:${this.teacherText.length}个
+任务数量:${this.unitJson[0].chapterInfo[0].taskJson}个
 任务描述:用老师的身份以友好,但是又清晰明确的口吻来撰写该描述,该描述教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动
 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
 工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:电子白板,文档,思维导图,表格,作业提交,问答,选择题,只在这几个工具里选
@@ -13866,11 +13866,13 @@ ${this.templateid == "4480d65a-1e48-11ef-bee5-005056b86db5" ? '## 目标层\n'+t
 // 补充资料:${url.join(",")}
 // 补充描述:${this.courseText2} ##补充参考资料和
 
-      let msg = `
+      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.
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
+Instruction: Based on the context, follow "Format example", write content.
 
---------
+#Context
 ## 参考资料
 课程名字:${this.courseName}
 ${sub.length ? '学科:' + sub.join(",") : ''}
@@ -13878,15 +13880,13 @@ ${mclass.length ? '面向年级:' + mclass.join(",") : ''}
 ${this.templatePan.includes(this.templateid) ? '课程节数:'+this.courseJie+'节' : ''}
 ${this.templatePan.includes(this.templateid) ? '课程时长:'+this.courseTime+'min' : ''}
 
---------
 ## 要求
-${message} 以及##参考资料 以文本格式输出项目概况,驱动性问题,最终作品,格式参考## Format example
+${message} 以及##参考资料 以文本格式输出项目概况,驱动性问题,最终作品
 
---------
 ## Format example
--课程简要描述:
--驱动性问题:**1个**驱动整个项目的问题
--最终作品:对应解决驱动性问题的作品,可个人可团队`
+课程简要描述:课程内容的简单叙述。
+驱动性问题:1个驱动整个项目的问题
+最终作品:对应解决驱动性问题的作品,可个人可团队`
       this.aiGet(msg)
     },
     setUnitJson() {
@@ -13930,7 +13930,7 @@ ${message} 以及##参考资料 以文本格式输出项目概况,驱动性问
       // })
       let params = {
         assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
-        message: [{"type":"text", "text":messages}],
+        message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
         session_name: _uuid,
         userId: _this.userid,
         uid: _uuid,
@@ -14915,18 +14915,21 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[task].taskDetail3.replaceAll('#','')
           url.push(this.infoData[i].url)
         }
       }
-      let messages = `
+      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.
-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.
 
---------
+#Context
 ## 要求
-${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
+${msg}
 
---------
-## 教学任务描述
+## 参考信息
 任务名称:${_this.aiCallBack.task}
-大纲描述:${_this.aiCallBack.taskDetail2}`
+
+## 优化内容
+大纲描述:${_this.aiCallBack.taskDetail2}。 内容不要以markdown形式出现,只需要口语化的形式`
 
 // -------- #补充参考资料和
 // ## 补充参考资料
@@ -14952,7 +14955,7 @@ ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
       // })
       let params = {
         assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
-        message: [{"type":"text", "text":messages}],
+        message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
         session_name: _uuid,
         userId: _this.userid,
         uid: _uuid,
@@ -15060,8 +15063,11 @@ ${msg} 及#教学任务描述 以文本格式输出任务设计和评价标准
       }
 
 
-      let messages = `
+      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.
+ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
+Instruction: Based on the context, follow "Format example", write content.
 
 #Context
 ## 要求
@@ -15073,7 +15079,7 @@ ${msg}
 ## 优化信息
 ${_this.aiCallBack.taskDetail}
 
-## 格式与要求
+# Format example
 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。`
       _this.taskDetailLoading2.push(_tindex)
       _this.ttaskDetailLoading2.push(_tindex)
@@ -15095,7 +15101,7 @@ ${_this.aiCallBack.taskDetail}
       // })
       let params = {
         assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
-        message: [{"type":"text", "text":messages}],
+        message: [{"type":"text", "text":messages.replaceAll('\n', " ")}],
         session_name: _uuid,
         userId: _this.userid,
         uid: _uuid,
@@ -15202,23 +15208,24 @@ ${_this.aiCallBack.taskDetail}
       }
 
       // **重点考虑该任务及工具名和工具内容的情况下*
-      let messages = `
+      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.
-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.
 
---------
+#Context
 ## 参考内容
 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
-工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]] : '无'}
+工具名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0] ? _this.toolsData[_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].tool[0]].name : '无'}
 工具内容:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].toolChoose[_tindex3].toolDetail}
 
---------
 ## 要求
 ${msg} 输出格式和内容要求参考#格式与要求
 
-# 格式与要求
--工具指引:以友好,明确的口吻告诉学生该如何使用该工具`
+# Format example
+工具指引:以友好,明确的口吻告诉学生该如何使用该工具,不要不要以markdown形式出现,只需要口语化的形式`
       _this.taskDetailLoading3.push(_tindex)
       _this.ttaskDetailLoading3.push(_tindex)
       let _uuid = uuidv4();
@@ -15239,7 +15246,7 @@ ${msg} 输出格式和内容要求参考#格式与要求
       // })
       let params = {
         assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
-        message: [{"type":"text", "text":messages}],
+        message: [{"type":"text", "text":messages.replaceAll('\n', " ").replaceAll('*', "")}],
         session_name: _uuid,
         userId: _this.userid,
         uid: _uuid,
@@ -15646,15 +15653,14 @@ ${_text2}`
         }
       }
 
-      let messages = `
+      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.
-ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
 
---------
+#Context
 ## 要求
 ${msg} 
         
--------
 ## 补充描述
 课程简要描述:${_this.courseText}
 任务名:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
@@ -15843,9 +15849,9 @@ ${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail2 ? '任务描
 // ${this.getListClassC(this.checkboxList2) ?  '班级:' + this.getListClassC(this.checkboxList2) : "无"}
 // ${this.cpote[_index] ? '## 优化内容\n'+this.cpote[_index] : ''}
 
-      let messages = `
+      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.
-ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
 
 ${msg} 
 

+ 1 - 1
src/components/pages/aiAddCourse/aiCreateDialog.vue

@@ -361,7 +361,7 @@ ${mclass.length ? "面向年级:" + mclass.join(",") : ""}
                     type == 1
                         ? "6063369f-289a-11ef-8bf4-12e77c4cb76b"
                         : "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
-                message: [{ type: "text", text: message }],
+                message: [{ type: "text", text: message.replaceAll('\n', " ") }],
                 session_name: uuidv4(),
                 userId: this.userid,
                 file_ids: fileid.length ? [...fileid] : "",

Някои файлове не бяха показани, защото твърде много файлове са промени