|
|
@@ -2329,7 +2329,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.if the user speaks Chinese Traditional, the specific text of your answer should also be in Chinese Traditional.
|
|
|
+Language: ${this.getLang()}
|
|
|
|
|
|
## 目的
|
|
|
你是用户的课堂助手,你需要基于提供给你的课程相关信息,对用户的提问进行回答。
|
|
|
@@ -2798,9 +2798,20 @@ ${_atList
|
|
|
}
|
|
|
}
|
|
|
let _uuid = uuidv4();
|
|
|
+ let formatExample = ''
|
|
|
+ if(this.lang.lang == 'cn'){
|
|
|
+ formatExample = `[{"index":1,"title":"课程核心概念","label":"本课程的核心知识点有哪些?"},{"index":2,"title":"学习准备材料","label":"上课前需要预习哪些资料?"},{"index":3,"title":"实践活动建议","label":"适合该课程的课堂实践活动有哪些?"},{"index":4,"title":"评价方式","label":"本课程的常见评价方式是什么?"},{"index":5,"title":"延伸阅读","label":"有哪些适合该课程的延伸阅读资源?"}]`
|
|
|
+ }else if(this.lang.lang == 'hk'){
|
|
|
+ formatExample = `[{"index":1,"title":"課程核心概念","label":"本課程的核心知識點有哪些?"},{"index":2,"title":"學習準備材料","label":"上課前需要預習哪些資料?"},{"index":3,"title":"實踐活動建議","label":"適合該課程的課堂實踐活動有哪些?"},{"index":4,"title":"評價方式","label":"本課程的常見評價方式是什麼?"},{"index":5,"title":"延伸閱讀","label":"有哪些適合該課程的延伸閱讀資源?"}]`
|
|
|
+ }else if(this.lang.lang == 'com'){
|
|
|
+ formatExample = `[{"index":1,"title":"Core Concepts","label":"What are the core concepts of this course?"},{"index":2,"title":"Preparation Materials","label":"What materials should be reviewed before class?"},{"index":3,"title":"Hands-on Activities","label":"What class activities work well for this course?"},{"index":4,"title":"Assessment Methods","label":"What are the common assessment methods for this course?"},{"index":5,"title":"Further Reading","label":"What extension resources are suitable for this course?"}]`
|
|
|
+ }
|
|
|
|
|
|
let _msg = `
|
|
|
Language: ${this.getLang()}
|
|
|
+Language: ${this.getLang()}
|
|
|
+Language: ${this.getLang()}
|
|
|
+
|
|
|
ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
|
|
|
Instruction: Based on the context, follow "Format example", write content
|
|
|
|
|
|
@@ -2822,7 +2833,7 @@ Instruction: Based on the context, follow "Format example", write content
|
|
|
搜索建议应以有序列表形式呈现,每个建议包括关键词和简短描述。输出JSON格式的
|
|
|
|
|
|
## Format example
|
|
|
-[{"index": 1,"title": "垃圾分类标准","label": "不同国家的垃圾分类标准和方法?"},{"index": 2,"title":"可回收垃圾处理","label": "可回收垃圾的处理流程和再利用方法?"},{ "index": 3, "title": "有害垃圾的影响", "label": "有害垃圾对环境和人体健康的潜在影响?"},{ "index": 4, "title": "垃圾分类标准", "label": "不同国家的垃圾分类标准和方法?"},{ "index": 5, "title": "可回收垃圾处理", "label": "可回收垃圾的处理流程和再利用方法?"},{ "index": 6, "title": "有害垃圾的影响", "label": "有害垃圾对环境和人体健康的潜在影响?"}]
|
|
|
+${formatExample}
|
|
|
`;
|
|
|
|
|
|
this.chatList.push({
|
|
|
@@ -3702,14 +3713,18 @@ ${_wordData}
|
|
|
inputElement.setSelectionRange(this.text.length, this.text.length);
|
|
|
},
|
|
|
getLang(){
|
|
|
+ console.log(this.lang.lang,'this.lang.lang');
|
|
|
+
|
|
|
let lang = ''
|
|
|
- if(this.languageSetting == 0){
|
|
|
+ if(this.lang.lang == 'cn'){
|
|
|
lang = 'Chinese.'
|
|
|
- }else if(this.languageSetting == 1){
|
|
|
+ }else if(this.lang.lang == 'hk'){
|
|
|
lang = 'Traditional Chinese.'
|
|
|
- }else if(this.languageSetting == 2){
|
|
|
+ }else if(this.lang.lang == 'com'){
|
|
|
lang = 'English.'
|
|
|
}
|
|
|
+ console.log(lang,'lang');
|
|
|
+
|
|
|
return lang
|
|
|
},
|
|
|
},
|