Skip to content

Commit

Permalink
Update conversation terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
ae86jack committed Apr 5, 2024
1 parent 0fd630b commit 9f75118
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface AssistantMsgBlock {
export type MsgBlock = UserMsgBlock | AssistantMsgBlock

/**
* 多轮对话的开始标记是连续两行的水平线,例如两行的“---”,结束标记是一行水平线
* 多轮会话的开始标记是连续两行的水平线,例如两行的“---”,结束标记是一行水平线
*/
export const findMultiRoundRange = (lines: string[], end: number): MultiRoundRange | null => {
let l = end
Expand Down
8 changes: 4 additions & 4 deletions src/lang/locale/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export default {
'Obtain key from https://open.bigmodel.cn': 'Obtain key from https://open.bigmodel.cn',
'Enter your key': 'Enter your key',

'Single Round Chat': 'Single Round Chat',
'Single Round Conversation': 'Single Round Conversation',
'Prompt template file': 'Prompt template file',
"Template file support both Chinese and English languages, with the default being the software's language setting.":
"Template file support both Chinese and English languages, with the default being the software's language setting.",
PromptTemplates: 'PromptTemplates',
'The starting mark of Multi-round chat is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.':
'The starting mark of Multi-round chat is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.',
'The starting mark of Multi-round conversation is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.':
'The starting mark of Multi-round conversation is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.',
'Sampling temperature controls the randomness of the output. A higher value makes the output more random and creative; a lower value makes the output more stable or deterministic.':
'Sampling temperature controls the randomness of the output. A higher value makes the output more random and creative; a lower value makes the output more stable or deterministic.',
'0.1 means that the model decoder only considers taking tokens from the candidate set of the top 10% probability.':
Expand All @@ -50,7 +50,7 @@ export default {

// modal.ts
Messages: 'Messages',
'Multi Round Chat': 'Multi Round Chat',
'Multi-round Conversation': 'Multi-round Conversation',
'Generate content': 'Generate content',
'Last used': 'Last used',
TimeInfoTemplate: dedent`
Expand Down
8 changes: 4 additions & 4 deletions src/lang/locale/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export default {
'Obtain key from https://open.bigmodel.cn': '从 https://open.bigmodel.cn 获取 key',
'Enter your key': '输入你的 key',

'Single Round Chat': '单轮对话',
'Single Round Conversation': '单轮会话',
'Prompt template file': '提示词模板文件',
"Template file support both Chinese and English languages, with the default being the software's language setting.":
'模版文件支持中文语言和英文语言,默认是软件的语言设置',
PromptTemplates: '提示词模板',
'The starting mark of Multi-round chat is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.':
'多轮对话的开始标记是连续两行的水平线,例如两行的“---”,结束标记是一行水平线',
'The starting mark of Multi-round conversation is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.':
'多轮会话的开始标记是连续两行的水平线,例如两行的“---”,结束标记是一行水平线',
'Sampling temperature controls the randomness of the output. A higher value makes the output more random and creative; a lower value makes the output more stable or deterministic.':
'采样温度,控制输出的随机性。值越大,会使输出更随机,更具创造性;值越小,输出会更加稳定或确定',
'0.1 means that the model decoder only considers taking tokens from the candidate set of the top 10% probability.':
Expand All @@ -49,7 +49,7 @@ export default {

// modal.ts
Messages: '发送消息',
'Multi Round Chat': '多轮对话',
'Multi-round Conversation': '多轮会话',
'Generate content': '生成内容',
'Last used': '上次使用',
TimeInfoTemplate: dedent`
Expand Down
2 changes: 1 addition & 1 deletion src/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class ApiCallInfoModal extends Modal {
const isMultiRound = 'multiRound' in template.params && template.params.multiRound

contentEl.createEl('h1', {
text: isMultiRound ? t('Multi Round Chat') : template.title
text: isMultiRound ? t('Multi-round Conversation') : template.title
})

for (const msg of messages) {
Expand Down
6 changes: 3 additions & 3 deletions src/settingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class AIZhipuSettingTab extends PluginSettingTab {
)

containerEl.createEl('br')
containerEl.createEl('h3', { text: t('Single Round Chat') })
containerEl.createEl('h3', { text: t('Single Round Conversation') })

new Setting(containerEl)
.setName(t('Prompt template file'))
Expand All @@ -50,8 +50,8 @@ export class AIZhipuSettingTab extends PluginSettingTab {
)

containerEl.createEl('br')
containerEl.createEl('h3', { text: t('Multi Round Chat') })
containerEl.createEl('p', { text: t('The starting mark of Multi-round chat is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.') })
containerEl.createEl('h3', { text: t('Multi-round Conversation') })
containerEl.createEl('p', { text: t('The starting mark of Multi-round conversation is two consecutive lines of horizontal dashes, such as two lines of "---", and the ending mark is a single line of horizontal dashes.') })

new Setting(containerEl)
.setName('temperature')
Expand Down

0 comments on commit 9f75118

Please sign in to comment.