SanHQin 5 ماه پیش
والد
کامیت
a4a34c5752
2فایلهای تغییر یافته به همراه13 افزوده شده و 10 حذف شده
  1. 11 8
      src/components/classRoomHelper/component/searchArea.vue
  2. 2 2
      src/components/classRoomHelper/index.vue

+ 11 - 8
src/components/classRoomHelper/component/searchArea.vue

@@ -1887,7 +1887,7 @@ export default {
         this.insertMemorandum(`<span class="btn">搜索视频</span>`);
         return this.ajax
           .post(`https://gpt4.cocorobo.cn/get_network_search`, {
-            engine: "bilibili",
+            engine: "bilibili",//bilibili    youtube
             keyword: _text
           })
           .then(res => {
@@ -1898,7 +1898,10 @@ export default {
               i.title = i.title
                 .replaceAll('<em class="keyword">', "")
                 .replaceAll("</em>", "");
+								// bilibili👇
               _resultText += `名称:${i.title}\n简介:${i.description}\n地址:[${i.arcurl}](${i.arcurl})\n\n`;
+							//youtube👇
+							// _resultText += `名称:${i.title}\n简介:${i.description}\n地址:[${i.link}](${i.link})\n\n`;
             });
             this.chatList.find(i => i.uid == _uuid).aiContent = _resultText;
             this.chatList.find(i => i.uid == _uuid).loading = false;
@@ -2142,7 +2145,7 @@ export default {
 
       _msg = `
 NOTICE
-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: 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.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
 
 ## 目的
 你是用户的课堂助手,你需要基于提供给你的课程相关信息,对用户的提问进行回答。
@@ -2338,7 +2341,7 @@ ${_atList
           this.chatList.find(i => i.uid == _uid).isShowSynchronization = true;
           this.chatList.find(i => i.uid == _uid).loading = false;
           this.nowChatList.push(this.chatList.find(i => i.uid == _uid));
-          this.addAsk(this.chatList.find(i => i.uid == _uid).content);
+          // this.addAsk(this.chatList.find(i => i.uid == _uid).content);
           // 这里保存对话
           this.insertChat(_uid);
           return;
@@ -2400,7 +2403,7 @@ ${_atList
           this.chatList.find(i => i.uid == _uid).isShowSynchronization = true;
           this.chatList.find(i => i.uid == _uid).loading = false;
           this.nowChatList.push(this.chatList.find(i => i.uid == _uid));
-          this.addAsk(this.chatList.find(i => i.uid == _uid).content);
+          // this.addAsk(this.chatList.find(i => i.uid == _uid).content);
           this.source.close();
           this.insertChat(_uid);
         } else {
@@ -2591,7 +2594,7 @@ ${_atList
       let _uuid = uuidv4();
 
       let _msg = `
-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: 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.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 Instruction: Based on the context, follow "Format example", write content
 
@@ -2608,7 +2611,7 @@ Instruction: Based on the context, follow "Format example", write content
 输出结果基于“课程信息”,避免提供无关的信息。
 搜索建议的结果符合伦理规范。
 ## 输出
-输出应包括6个相关的搜索建议,每个搜索建议需要以问号的方式结束。
+输出应包括5个相关的搜索建议,每个搜索建议需要以问号的方式结束。
 请一步步思考如何根据现有信息推送搜索建议,但是不需要输出搜索建议以外的内
 
 ## 输出格式
@@ -2967,7 +2970,7 @@ Instruction: Based on the context, follow "Format example", write content
           // return this.chatLoading = false;
           _msg = `
 NOTICE
-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: 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.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
 
 ## 目的
 你是教师用户的课堂助手,你需要基于提供给你的课程相关信息以及学生的作业数据,就某些具体作业对全班学生进行总结分析。
@@ -3168,7 +3171,7 @@ ${_wordData}
 
       _msg = `
 NOTICE
-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: 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.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
 
 ## 目的
 你是教师用户的课堂助手,你需要基于提供给你的课程相关信息以及学生的作业数据,就某些具体作业对全班学生进行总结分析。

+ 2 - 2
src/components/classRoomHelper/index.vue

@@ -411,7 +411,7 @@ export default {
         });
         _textData += "\n";
       });
-			let _msg = `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.
+			let _msg = `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.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 Instruction: Based on the context, follow "Format example", write content
 
@@ -688,7 +688,7 @@ let params = {
 			this.canUseWangData = false
 			this.wangData=""
       let _msg = `
-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: 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.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
 ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
 Instruction: Based on the context, follow "Format example", write content