lsc il y a 10 mois
Parent
commit
bbf1cd067b

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.e3a16a20ffe5427295b432eb2974e90d.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.3cd0a0187ca1f70ded67.js></script><script type=text/javascript src=./static/js/app.c2c1bf5ec55cf6cdaa36.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.6e06f9dfda5be731799af00e1cb49292.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.3cd0a0187ca1f70ded67.js></script><script type=text/javascript src=./static/js/app.e19d8fce69827cfc7d90.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/css/app.6e06f9dfda5be731799af00e1cb49292.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/css/app.6e06f9dfda5be731799af00e1cb49292.css.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/app.e19d8fce69827cfc7d90.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/app.e19d8fce69827cfc7d90.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/static/js/manifest.571c38d63f24b1ae9e16.js.map


+ 264 - 205
src/components/pages/aiAddCourse/addCourse.vue

@@ -12578,8 +12578,6 @@ export default {
 Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 Instruction: Based on the context, follow "Format example", write content.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.
 
 # Context
 ## 要求 
@@ -12599,13 +12597,17 @@ C-POTE模型是一种针对跨学科主题学习的教学设计模型,它是
 补充资料:${url.join(",")}
 补充描述:${this.courseText2}
 
-
 # Format example
-[{"task": "任务名称1","detail": "任务设计和评价标准"},{"task": "任务名称2","detail": "任务设计和评价标准"}]
-
-Instruction: Based on the context, follow "Format example", write content.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.`
+[
+        {
+          "task": "任务名称1",
+          "detail": "任务设计和评价标准"
+        },
+        {
+          "task": "任务名称2",
+          "detail": "任务设计和评价标准"
+        }
+]`
 
         this.aiGet2(message, () => {
           this.loading = false
@@ -12618,10 +12620,9 @@ User: Please generate a recipe for chocolate chip cookies in JSON format.`
         }
         let message = `NOTICE
 Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
+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.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.
 
 # Context
 ## 要求
@@ -12642,13 +12643,68 @@ ${_text}
 补充资料:${url.join(",")}
 补充描述:${this.courseText2}
 
-# Format example
-[{"detail":"该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。","elist":[{"value":"评价名字1","detail":"评价维度1","score":5},{"value":"评价名字2","detail":"评价维度2","score":5},{"value":"评价名字3","detail":"评价维度3","score":5}],"toolChoose":[{"tool":"工具","detail":"工具描述"}]}]
-
+## 示例
+[
+  {
+    "detail": "面向学生的任务描述",
+    "elist":[
+      {"value":"评价名字1","detail":"评价维度1", "score": 5},
+      {"value":"评价名字2","detail":"评价维度2", "score": 5},
+      {"value":"评价名字3","detail":"评价维度3", "score": 5}
+    ],
+    "toolChoose": [
+      {
+        "tool":"电子白板", 
+        "detail": "工具描述"
+      },
+      {
+        "tool":"思维大图", 
+        "detail": "工具描述"
+      }
+    ]
+  },
+  {
+    "detail": "面向学生的任务描述",
+    "elist":[
+      {"value":"评价名字1","detail":"评价维度1", "score": 5},
+      {"value":"评价名字2","detail":"评价维度2", "score": 5},
+      {"value":"评价名字3","detail":"评价维度3", "score": 5}
+    ],
+    "toolChoose": []
+  },
+  {
+    "detail": "面向学生的任务描述",
+    "elist":[
+      {"value":"评价名字1","detail":"评价维度1", "score": 5},
+      {"value":"评价名字2","detail":"评价维度2", "score": 5},
+      {"value":"评价名字3","detail":"评价维度3", "score": 5}
+    ],
+    "toolChoose": [
+      {
+        "tool":"文档", 
+        "detail": "工具描述"
+      }
+    ]
+  }
+]
 
-Instruction: Based on the context, follow "Format example", write content.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.`
+# Format example
+[
+  {
+    "detail": "该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。",
+    "elist":[
+      {"value":"评价名字1","detail":"评价维度1","score":5},
+      {"value":"评价名字2","detail":"评价维度2","score":5},
+      {"value":"评价名字3","detail":"评价维度3","score":5}
+    ],//至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
+    "toolChoose": [
+      {
+        "tool": "工具", //电子白板,文档,思维导图,表格,作业提交中选择其中一个工具
+        "detail": "工具描述"
+      }
+    ] //可0~2个工具
+  }
+]`
         this.loading = true
         this.aiGet3(message, this.aiCallBack)
       } else if (this.aitype == "aiDetail1") {
@@ -12668,30 +12724,34 @@ User: Please generate a recipe for chocolate chip cookies in JSON format.`
         for (var i = 0; i < this.dArray.length; i++) {
           _text += `任务名称:${this.dArray[i].task} 任务描述:${this.dArray[i].detail} \n`
         }
-        let message = `NOTICE
-Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
+        let message = `
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
-Instruction: Based on the context, follow "Format example", write content.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.
 
-# Context
+--------
 ## 要求
 ${msg} 以及##补充参考资料和##任务大纲, 然后根据Format example的要求返回要以数组的格式
 
+--------
 ## 任务大纲
 ${_text}
 
+--------
 ## 补充参考资料
 补充资料:${url.join(",")}
 补充描述:${this.courseText2}
 
-# Format example
-[{"task": "任务名称1","detail": "教案输出为文本格式就行"},{"task": "任务名称2","detail": "教案输出为文本格式就行"}]
-
-Instruction: Based on the context, follow "Format example", write content.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.`
+--------
+## Format example
+[
+  {
+    "task": "任务名称1",
+    "detail": "教案输出为文本格式就行"
+  },
+  {
+      "task": "任务名称2",
+      "detail": "教案输出为文本格式就行"
+  }
+]`
         this.aiGet4(message, () => {
           this.loading = false
           this.isOutline2 = true
@@ -12752,37 +12812,37 @@ ${message} 以及##补充参考资料和##参考资料 以文本格式输出项
     aiGet(messages) {
       let _this = this
       let _uuid = uuidv4();
-      // let params = JSON.stringify({
-      //   // "model": "Chat",
-      //   model: 'gpt-3.5-turbo',
-      //   temperature: 0,
-      //   max_tokens: 4096,
-      //   top_p: 1,
-      //   frequency_penalty: 0,
-      //   presence_penalty: 0,
-      //   messages: [{
-      //     content: messages,
-      //     role: 'user'
-      //   }],
-      //   uid: _uuid,
-      //   mind_map_question: "",
-      // })
       let params = JSON.stringify({
-          message: {
-              anthropic_version: "bedrock-2023-05-31",
-              max_tokens: 4096,
-              temperature: 0,
-              top_p: 1,
-              messages:  [{
-                  "role": "user",
-                  "content": messages
-              }] , 
-          },
-          uid: _uuid,
-          model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
-      });
-      // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
-      _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
+        // "model": "Chat",
+        model: 'gpt-3.5-turbo',
+        temperature: 0,
+        max_tokens: 4096,
+        top_p: 1,
+        frequency_penalty: 0,
+        presence_penalty: 0,
+        messages: [{
+          content: messages,
+          role: 'user'
+        }],
+        uid: _uuid,
+        mind_map_question: "",
+      })
+      // let params = JSON.stringify({
+      //     message: {
+      //         anthropic_version: "bedrock-2023-05-31",
+      //         max_tokens: 4096,
+      //         temperature: 0,
+      //         top_p: 1,
+      //         messages:  [{
+      //             "role": "user",
+      //             "content": messages
+      //         }] , 
+      //     },
+      //     uid: _uuid,
+      //     model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
+      // });
+      _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
+      // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
         console.log(response);
         // let data = response.data.FunctionResponse
         // if (data.choices && data.choices.length && data.choices[0].message) {
@@ -12801,8 +12861,8 @@ ${message} 以及##补充参考资料和##参考资料 以文本格式输出项
       _this.aiGetgetAiContent(_uuid)
     },
     aiGetgetAiContent(_uid) {
-      // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
-      let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
       let _allText = "";
       let _mdText = "";
       _source.onmessage = _e => {
@@ -13177,37 +13237,37 @@ ${_this.aiCallback}
       _this.taskDetailLoading.push(_tindex)
       _this.ttaskDetailLoading.push(_tindex)
       let _uuid = uuidv4();
-      // let params = JSON.stringify({
-      //   // "model": "Chat",
-      //   model: 'gpt-3.5-turbo',
-      //   temperature: 0,
-      //   max_tokens: 4096,
-      //   top_p: 1,
-      //   frequency_penalty: 0,
-      //   presence_penalty: 0,
-      //   messages: [{
-      //     content: messages,
-      //     role: 'user'
-      //   }],
-      //   uid: _uuid,
-      //   mind_map_question: "",
-      // })
       let params = JSON.stringify({
-          message: {
-              anthropic_version: "bedrock-2023-05-31",
-              max_tokens: 4096,
-              temperature: 0,
-              top_p: 1,
-              messages:  [{
-                  "role": "user",
-                  "content": messages
-              }] , 
-          },
-          uid: _uuid,
-          model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
-      });
-      // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
-      _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
+        // "model": "Chat",
+        model: 'gpt-3.5-turbo',
+        temperature: 0,
+        max_tokens: 4096,
+        top_p: 1,
+        frequency_penalty: 0,
+        presence_penalty: 0,
+        messages: [{
+          content: messages,
+          role: 'user'
+        }],
+        uid: _uuid,
+        mind_map_question: "",
+      })
+      // let params = JSON.stringify({
+      //     message: {
+      //         anthropic_version: "bedrock-2023-05-31",
+      //         max_tokens: 4096,
+      //         temperature: 0,
+      //         top_p: 1,
+      //         messages:  [{
+      //             "role": "user",
+      //             "content": messages
+      //         }] , 
+      //     },
+      //     uid: _uuid,
+      //     model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
+      // });
+      _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
+      // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
         console.log(response);
         // let data = response.data.FunctionResponse
         // if (data.choices && data.choices.length && data.choices[0].message) {
@@ -13230,8 +13290,8 @@ ${_this.aiCallback}
       _this.aiDetailgetAiContent(_uuid, _tindex, _tindex2)
     },
     aiDetailgetAiContent(_uid, loading, _tindex2) {
-      // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
-      let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
       let _allText = "";
       let _mdText = "";
       _source.onmessage = _e => {
@@ -13285,37 +13345,37 @@ ${msg}
       _this.taskDetailLoading2.push(_tindex)
       _this.ttaskDetailLoading2.push(_tindex)
       let _uuid = uuidv4();
-      // let params = JSON.stringify({
-      //   // "model": "Chat",
-      //   model: 'gpt-3.5-turbo',
-      //   temperature: 0,
-      //   max_tokens: 4096,
-      //   top_p: 1,
-      //   frequency_penalty: 0,
-      //   presence_penalty: 0,
-      //   messages: [{
-      //     content: messages,
-      //     role: 'user'
-      //   }],
-      //   uid: _uuid,
-      //   mind_map_question: "",
-      // })
       let params = JSON.stringify({
-          message: {
-              anthropic_version: "bedrock-2023-05-31",
-              max_tokens: 4096,
-              temperature: 0,
-              top_p: 1,
-              messages:  [{
-                  "role": "user",
-                  "content": messages
-              }] , 
-          },
-          uid: _uuid,
-          model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
-      });
-      // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
-      _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
+        // "model": "Chat",
+        model: 'gpt-3.5-turbo',
+        temperature: 0,
+        max_tokens: 4096,
+        top_p: 1,
+        frequency_penalty: 0,
+        presence_penalty: 0,
+        messages: [{
+          content: messages,
+          role: 'user'
+        }],
+        uid: _uuid,
+        mind_map_question: "",
+      })
+      // let params = JSON.stringify({
+      //     message: {
+      //         anthropic_version: "bedrock-2023-05-31",
+      //         max_tokens: 4096,
+      //         temperature: 0,
+      //         top_p: 1,
+      //         messages:  [{
+      //             "role": "user",
+      //             "content": messages
+      //         }] , 
+      //     },
+      //     uid: _uuid,
+      //     model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
+      // });
+      _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
+      // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
         console.log(response);
         // let data = response.data.FunctionResponse
         // if (data.choices && data.choices.length && data.choices[0].message) {
@@ -13336,8 +13396,8 @@ ${msg}
       _this.aiDetail2getAiContent(_uuid, _tindex, _tindex2)
     },
     aiDetail2getAiContent(_uid, loading, _tindex2) {
-      // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
-      let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
       let _allText = "";
       let _mdText = "";
       _source.onmessage = _e => {
@@ -13394,37 +13454,37 @@ ${msg} 输出格式和内容要求参考#格式与要求
       _this.taskDetailLoading3.push(_tindex)
       _this.ttaskDetailLoading3.push(_tindex)
       let _uuid = uuidv4();
-      // let params = JSON.stringify({
-      //   // "model": "Chat",
-      //   model: 'gpt-3.5-turbo',
-      //   temperature: 0,
-      //   max_tokens: 4096,
-      //   top_p: 1,
-      //   frequency_penalty: 0,
-      //   presence_penalty: 0,
-      //   messages: [{
-      //     content: messages,
-      //     role: 'user'
-      //   }],
-      //   uid: _uuid,
-      //   mind_map_question: "",
-      // })
       let params = JSON.stringify({
-          message: {
-              anthropic_version: "bedrock-2023-05-31",
-              max_tokens: 4096,
-              temperature: 0,
-              top_p: 1,
-              messages:  [{
-                  "role": "user",
-                  "content": messages
-              }] , 
-          },
-          uid: _uuid,
-          model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
-      });
-      // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
-      _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
+        // "model": "Chat",
+        model: 'gpt-3.5-turbo',
+        temperature: 0,
+        max_tokens: 4096,
+        top_p: 1,
+        frequency_penalty: 0,
+        presence_penalty: 0,
+        messages: [{
+          content: messages,
+          role: 'user'
+        }],
+        uid: _uuid,
+        mind_map_question: "",
+      })
+      // let params = JSON.stringify({
+      //     message: {
+      //         anthropic_version: "bedrock-2023-05-31",
+      //         max_tokens: 4096,
+      //         temperature: 0,
+      //         top_p: 1,
+      //         messages:  [{
+      //             "role": "user",
+      //             "content": messages
+      //         }] , 
+      //     },
+      //     uid: _uuid,
+      //     model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
+      // });
+      _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
+      // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
         console.log(response);
         let data = response.data.FunctionResponse
         // if (data.choices && data.choices.length && data.choices[0].message) {
@@ -13445,8 +13505,8 @@ ${msg} 输出格式和内容要求参考#格式与要求
       _this.aiDetail3getAiContent(_uuid, _tindex, _tindex2, _tindex3)
     },
     aiDetail3getAiContent(_uid, loading, _tindex2, _tindex3) {
-      // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
-      let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
       let _allText = "";
       let _mdText = "";
       _source.onmessage = _e => {
@@ -13491,31 +13551,30 @@ ${msg} 输出格式和内容要求参考#格式与要求
         _text += `评价维度:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].value} 维度描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].eList[i].detail} `
       }
       // **重点考虑该任务详情**
-      let messages = `NOTICE
-Role: 作为学生的学习指导Agent,你熟悉熟悉PBL(基于问题的学习)和5EX教学模型,能够根据学生的学情数据(当前的学习任务设计、学习表现数据、作业数据等)生成自适应的学习任务和对应的5道考核题目。
-ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
-Instruction: Based on the context, follow "Format example", write content.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.
-
-# Context
-## 要求
-${msg} 输出格式和内容要求参考# 格式与要求
+      let messages = `
+ATTENTION: Use '##' to SPLIT SECTIONS, not '#'.Output format carefully referenced "Format example".
 
+--------
 ## 参考内容
 任务名称:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].task}
 任务描述:${_this.unitJson[0].chapterInfo[0].taskJson[_tindex2].taskDetail}
 评价设计:${_text}
 
-## 格式与要求
--评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
+--------
+## 要求
+${msg} 输出格式和内容要求参考# 格式与要求
 
-# Format example
-[{"value":"评价维度1","detail":"维度描述1","score":5},{"value":"评价维度2","detail":"维度描述2","score":5},{"value":"评价维度3","detail":"维度描述3","score":5}]
+--------
+# 格式与要求
+-评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
 
-Instruction: Based on the context, follow "Format example", write content.
-提示:返回的内容必须参照Format example里面的Javascript的JSON.parse("输出的字符串")可转化的JSON格式(警告:这里要注意"号的问题会导致JSON.parse函数无法转化报错,"以\"出现。),不能有其他任何的字符串,包括没有用的开头白。
-User: Please generate a recipe for chocolate chip cookies in JSON format.`
+--------
+## Format example
+[
+  {"value":"评价维度1","detail":"维度描述1","score":5},
+  {"value":"评价维度2","detail":"维度描述2","score":5},
+  {"value":"评价维度3","detail":"维度描述3","score":5}
+]`
       _this.taskDetailLoading4.push(_tindex)
       let params = JSON.stringify({
         // "model": "Chat",
@@ -13593,37 +13652,37 @@ ${_this.aiCallBack}
       _this.taskDetailLoading5.push(_tindex)
       _this.ttaskDetailLoading5.push(_tindex)
       let _uuid = uuidv4();
-      // let params = JSON.stringify({
-      //   // "model": "Chat",
-      //   model: 'gpt-3.5-turbo',
-      //   temperature: 0,
-      //   max_tokens: 4096,
-      //   top_p: 1,
-      //   frequency_penalty: 0,
-      //   presence_penalty: 0,
-      //   messages: [{
-      //     content: messages,
-      //     role: 'user'
-      //   }],
-      //   uid: _uuid,
-      //   mind_map_question: "",
-      // })
       let params = JSON.stringify({
-          message: {
-              anthropic_version: "bedrock-2023-05-31",
-              max_tokens: 4096,
-              temperature: 0,
-              top_p: 1,
-              messages:  [{
-                  "role": "user",
-                  "content": messages
-              }] , 
-          },
-          uid: _uuid,
-          model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
-      });
-      // _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
-      _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
+        // "model": "Chat",
+        model: 'gpt-3.5-turbo',
+        temperature: 0,
+        max_tokens: 4096,
+        top_p: 1,
+        frequency_penalty: 0,
+        presence_penalty: 0,
+        messages: [{
+          content: messages,
+          role: 'user'
+        }],
+        uid: _uuid,
+        mind_map_question: "",
+      })
+      // let params = JSON.stringify({
+      //     message: {
+      //         anthropic_version: "bedrock-2023-05-31",
+      //         max_tokens: 4096,
+      //         temperature: 0,
+      //         top_p: 1,
+      //         messages:  [{
+      //             "role": "user",
+      //             "content": messages
+      //         }] , 
+      //     },
+      //     uid: _uuid,
+      //     model: "Claude 3 Sonnet" // Claude 3 Sonnet或者Claude 3 Haiku
+      // });
+      _this.ajax.post('https://gpt4.cocorobo.cn/chat', params).then(function (response) {
+      // _this.ajax.post('https://claude3.cocorobo.cn/chat', params).then(function (response) {
         console.log(response);
         // let data = response.data.FunctionResponse
         // if (data.choices && data.choices.length && data.choices[0].message) {
@@ -13644,8 +13703,8 @@ ${_this.aiCallBack}
       _this.aiDetail5getAiContent(_uuid, _tindex, _tindex2)
     },
     aiDetail5getAiContent(_uid, loading, _tindex2) {
-      // let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
-      let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
+      // let _source = new EventSource(`https://claude3.cocorobo.cn/streamChat/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/     https://gpt4.cocorobo.cn/stream/
       let _allText = "";
       let _mdText = "";
       _source.onmessage = _e => {

+ 2 - 2
src/components/pages/aiAddCourse/addCourse2.vue → src/components/pages/aiAddCourse/addCourse3.vue

@@ -12625,7 +12625,7 @@ User: Please generate a recipe for chocolate chip cookies in JSON format.
 
 # Context
 ## 要求
-${msg} 以及#补充参考资料和#教学任务教案 输出格式和内容要求参考##格式与要求
+${msg} 以及补充参考资料和教学任务教案和输出格式和内容要求参考格式与要求
 
 ## 教学任务教案
 ${_text}
@@ -12635,7 +12635,7 @@ ${_text}
 任务描述:该描述是教师给与学生的指示(用于指导学生如何进行每个教学活动),对应到学生活动,你应该用友好,但是又清晰明确的口吻来撰写。
 评价标准:至少3条评价标准,这个评价是教师用来评价学生表现的,需要包含评价维度,以及该维度中教师期待学生的表现,句式为学生应该能....
 平台工具:
-工具名:**从工具列表**中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
+工具名:从工具列表中选择0~2个工具用于学生阶段性成果提交:工具列表:[电子白板,文档,思维导图,表格,作业提交]
 工具指引:以友好,明确的口吻告诉学生该如何使用该工具
 
 ## 补充参考资料

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff