@blueking/ai-blueking 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,15 +116,17 @@ const Xe = (o) => {
116
116
  您选择的文本内容: "The text content you selected",
117
117
  问小鲸: "Ask BK GPT",
118
118
  想对选中的文本做什么: "What do you want to do with the selected text?",
119
- translateShortcut: `You are a highly skilled AI trained in language translation. I would like you to translate the text delimited by triple quotes into Chinese language, ensuring that the translation is colloquial and authentic.
119
+ translateShortcut: `You are a highly skilled AI trained in language translation. I would like you to translate the text delimited by triple quotes (Translation of Chinese into English and other languages into Chinese), ensuring that the translation is colloquial and authentic.
120
120
  Only give me the output and nothing else. Do not wrap responses in quotes
121
121
  '''
122
122
  {{ SELECTED_TEXT }}
123
123
  '''
124
124
  `,
125
- explanationShortcut: `You are a professional explainer. Please provide a detailed explanation of "{{ SELECTED_TEXT }}". Your explanation should include: 1) basic meaning and conceptual explanation; 2) practical applications or use cases; 3) if it's a technical term, please provide relevant technical background; 4) where appropriate, provide specific examples to aid understanding. Use clear and accessible language to ensure non-experts can understand. If the word/phrase has multiple meanings, please list the main definitions. Keep your response concise and clear while ensuring completeness and accuracy of information.`
125
+ explanationShortcut: `You are a professional explainer. Please provide a detailed explanation of "{{ SELECTED_TEXT }}". Your explanation should include: 1) basic meaning and conceptual explanation; 2) practical applications or use cases; 3) if it's a technical term, please provide relevant technical background; 4) where appropriate, provide specific examples to aid understanding. Use clear and accessible language to ensure non-experts can understand. If the word/phrase has multiple meanings, please list the main definitions. Keep your response concise and clear while ensuring completeness and accuracy of information.`,
126
+ 翻译: "translate",
127
+ 解释: "explan"
126
128
  }, je = {
127
- translateShortcut: `你是受过语言翻译训练的高技能人工智能。我想让你把用三引号分隔的文本翻译成中文,确保译文口语化、地道。
129
+ translateShortcut: `你是受过语言翻译训练的高技能人工智能。我想让你把用三引号分隔的文本翻译(中文翻译成英文,其他语言翻译成中文),确保译文口语化、地道。
128
130
  只给我输出结果,其他内容一概不要。请勿用引号将回复包起来
129
131
  '''
130
132
  {{ selected_text }}
@@ -132,11 +134,11 @@ const Xe = (o) => {
132
134
  explanationShortcut: "您是一位专业的解释者。请详细解释“{{ SELECTED_TEXT }}”。您的解释应包括 1) 基本含义和概念解释;2) 实际应用或使用案例;3) 如果是技术术语,请提供相关技术背景;4) 适当时提供具体示例,以帮助理解。使用清晰易懂的语言,确保非专业人员也能理解。如果该词/短语有多种含义,请列出主要定义。在确保信息完整性和准确性的同时,请保持答复简洁明了。"
133
135
  }, f = (o) => Ue !== "en" ? je[o] || o : Qe[o] || o, We = [
134
136
  {
135
- label: "翻译",
137
+ label: f("翻译"),
136
138
  prompt: f("translateShortcut")
137
139
  },
138
140
  {
139
- label: "解释",
141
+ label: f("解释"),
140
142
  prompt: f("explanationShortcut")
141
143
  }
142
144
  ], Ge = { class: "ai-cite" }, Je = { class: "ai-cite-text" }, Ze = { class: "ai-cite-tips" }, Oe = /* @__PURE__ */ Y({