fix: code-based extension (#1477)

This commit is contained in:
zxhlyh 2023-11-07 17:56:07 +08:00 • committed by GitHub
commit 7b26c9e2ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 18 deletions

View file

@ -134,7 +134,7 @@ const translation = {
},
moderation: {
title: 'Content moderation',
description: 'Content moderation',
description: 'Secure model output by using moderation API or maintaining a sensitive word list.',
allEnabled: 'INPUT/OUTPUT Content Enabled',
inputEnabled: 'INPUT Content Enabled',
outputEnabled: 'OUTPUT Content Enabled',

View file

@ -133,13 +133,13 @@ const translation = {
title: '工具箱',
},
moderation: {
title: '内容审核',
description: '内容审核',
allEnabled: '审核输入/审核输出 内容已启用',
inputEnabled: '审核输入内容已启用',
outputEnabled: '审核输出内容已启用',
title: '内容审查',
description: '您可以调用审查 API 或者维护敏感词库来使模型更安全地输出。',
allEnabled: '审查输入/审查输出 内容已启用',
inputEnabled: '审查输入内容已启用',
outputEnabled: '审查输出内容已启用',
modal: {
title: '内容审核设置',
title: '内容审查设置',
provider: {
title: '类别',
openai: 'OpenAI Moderation',
@ -155,17 +155,17 @@ const translation = {
line: '行',
},
content: {
input: '审核输入内容',
output: '审核输出内容',
input: '审查输入内容',
output: '审查输出内容',
preset: '预设回复',
placeholder: '这里预设回复内容',
condition: '审核输入内容和审核输出内容至少启用一项',
condition: '审查输入内容和审查输出内容至少启用一项',
fromApi: '预设回复通过 API 返回',
errorMessage: '预设回复不能为空',
supportMarkdown: '支持 Markdown',
},
openaiNotConfig: {
before: 'OpenAI 内容审核需要在',
before: 'OpenAI 内容审查需要在',
after: '中配置 OpenAI API 密钥。',
},
},