lobehub/locales/zh_CN/setting.json
CanisMinor 4fa2ef410f
feat: support TTS & STT (#443)
*  feat(tts): Add tts and stt basic features

*  feat(tts): Handle error

* 💄 style(tts): Add alert to error handler

* 🐛 fix(tts): Error display

* ♻️ refactor: refactor the openai initial code to the createBizOpenAI

* ♻️ refactor(tts): Refactor header config

*  feat: Add TTS voice preview

* 🐛 fix(tts): Fix header

* 🐛 fix: Fix api

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
2023-11-19 21:43:58 +08:00

272 lines
8.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"danger": {
"clear": {
"action": "立即清除",
"confirm": "确认清除所有聊天数据?",
"desc": "清除所有会话数据",
"success": "已清除所有会话消息",
"title": "清除所有会话消息"
},
"reset": {
"action": "立即重置",
"confirm": "确认重置所有设置?",
"currentVersion": "当前版本",
"desc": "重置所有设置项回默认值",
"title": "重置所有设置"
}
},
"header": {
"global": "全局设置",
"session": "会话设置",
"sessionWithName": "会话设置 · {{name}}"
},
"llm": {
"AzureOpenAI": {
"endpoint": {
"desc": "从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值",
"placeholder": "https://docs-test-001.openai.azure.com",
"title": "Azure API 地址"
},
"models": {
"desc": "支持的模型",
"title": "模型列表"
},
"title": "Azure OpenAI 设置",
"token": {
"desc": "从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值。 可以使用 KEY1 或 KEY2",
"placeholder": "Azure API Key",
"title": "API Key"
}
},
"OpenAI": {
"azureApiVersion": {
"desc": "Azure 的 API 版本,遵循 YYYY-MM-DD 格式,查阅[最新版本](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)",
"fetch": "获取列表",
"title": "Azure Api Version"
},
"check": {
"button": "检查",
"desc": "测试 Api Key 与代理地址是否正确填写",
"pass": "检查通过",
"title": "连通性检查"
},
"customModelName": {
"desc": "增加自定义模型,多个模型使用逗号(, 隔开",
"placeholder": "model1,model2,model3",
"title": "自定义模型名称"
},
"endpoint": {
"desc": "除默认地址外,必须包含 http(s)://",
"placeholder": "https://api.openai.com/v1",
"title": "接口代理地址"
},
"models": {
"count": "共支持 {{count}} 个模型",
"desc": "支持的模型",
"fetch": "获取模型列表",
"notSupport": "Azure OpenAI 暂不支持查看模型列表",
"notSupportTip": "你需要自行确保部署名称与模型名称一致",
"refetch": "重新获取模型列表",
"title": "模型列表"
},
"title": "OpenAI 设置",
"token": {
"desc": "使用自己的 OpenAI Key",
"placeholder": "OpenAI API Key",
"title": "API Key"
},
"useAzure": {
"desc": "使用 Azure 提供的 OpenAI 服务",
"fetch": "获取列表",
"serverConfig": "管理员在服务端配置开启了 Azure OpenAI禁止切换",
"title": "Azure OpenAI"
}
},
"waitingForMore": "更多模型正在 <1>计划接入</1> 中,敬请期待 ✨"
},
"settingAgent": {
"avatar": {
"title": "头像"
},
"backgroundColor": {
"title": "背景色"
},
"description": {
"placeholder": "请输入助手描述",
"title": "助手描述"
},
"name": {
"placeholder": "请输入助手名称",
"title": "名称"
},
"prompt": {
"placeholder": "请输入角色 Prompt 提示词",
"title": "角色设定"
},
"tag": {
"placeholder": "请输入标签",
"title": "标签"
},
"title": "助手信息"
},
"settingChat": {
"chatStyleType": {
"title": "聊天窗口样式",
"type": {
"chat": "对话模式",
"docs": "文档模式"
}
},
"compressThreshold": {
"desc": "当未压缩的历史消息超过该值时,将进行压缩",
"title": "历史消息长度压缩阈值"
},
"enableCompressThreshold": {
"title": "是否开启历史消息长度压缩阈值"
},
"enableHistoryCount": {
"alias": "不限制",
"limited": "只包含 {{number}} 条会话消息",
"title": "限制历史消息数",
"unlimited": "不限历史消息数"
},
"historyCount": {
"desc": "每次请求携带的历史消息数",
"title": "附带历史消息数"
},
"inputTemplate": {
"desc": "用户最新的一条消息会填充到此模板",
"placeholder": "预处理模版 {{text}} 将替换为实时输入信息",
"title": "用户输入预处理"
},
"title": "聊天设置"
},
"settingModel": {
"enableMaxTokens": {
"title": "开启单次回复限制"
},
"frequencyPenalty": {
"desc": "值越大,越有可能降低重复字词",
"title": "频率惩罚度"
},
"maxTokens": {
"desc": "单次交互所用的最大 Token 数",
"title": "单次回复限制"
},
"model": {
"desc": "ChatGPT 模型",
"list": {
"gpt-3.5-turbo": "GPT 3.5",
"gpt-3.5-turbo-16k": "GPT 3.5 (16K)",
"gpt-4": "GPT 4",
"gpt-4-32k": "GPT 4 (32K)"
},
"title": "模型"
},
"presencePenalty": {
"desc": "值越大,越有可能扩展到新话题",
"title": "话题新鲜度"
},
"temperature": {
"desc": "值越大,回复越随机",
"title": "随机性",
"titleWithValue": "随机性 {{value}}"
},
"title": "模型设置",
"topP": {
"desc": "与随机性类似,但不要和随机性一起更改",
"title": "核采样"
}
},
"settingPlugin": {
"add": "添加",
"addTooltip": "添加自定义插件",
"clearDeprecated": "移除无效插件",
"config": "{{id}} 插件配置",
"settings": "配置插件市场",
"title": "插件列表"
},
"settingSystem": {
"accessCode": {
"desc": "管理员已开启加密访问",
"placeholder": "请输入访问密码",
"title": "访问密码"
},
"title": "系统设置"
},
"settingTTS": {
"openai": {
"sttModel": "OpenAI 语音识别模型",
"ttsModel": "OpenAI 语音合成模型"
},
"showAllLocaleVoice": {
"desc": "关闭则只显示当前语种的声源",
"title": "显示所有语种声源"
},
"stt": "语音识别设置",
"sttAutoStop": {
"desc": "关闭后,语音识别将不会自动结束,需要手动点击结束按钮",
"title": "自动结束语音识别"
},
"sttLocale": {
"desc": "语音输入的语种,此选项可提高语音识别准确率",
"title": "语音识别语种"
},
"sttService": {
"desc": "其中 broswer 为浏览器原生的语音识别服务",
"title": "语音识别服务"
},
"title": "语音服务",
"tts": "语音合成设置",
"ttsService": {
"desc": "如使用 OpenAI 语音合成服务,需要保证 OpenAI 模型服务已开启",
"title": "语音合成服务"
},
"voice": {
"desc": "为当前助手挑选一个声音,不同 TTS 服务支持的声源不同",
"preview": "试听声源",
"title": "语音合成声源"
}
},
"settingTheme": {
"avatar": {
"title": "头像"
},
"fontSize": {
"desc": "聊天内容的字体大小",
"title": "字体大小"
},
"lang": {
"autoMode": "跟随系统",
"title": "语言"
},
"neutralColor": {
"desc": "不同色彩倾向的灰阶自定义",
"title": "中性色"
},
"primaryColor": {
"desc": "自定义主题色",
"title": "主题色"
},
"themeMode": {
"auto": "自动",
"dark": "深色",
"light": "浅色",
"title": "主题"
},
"title": "主题设置"
},
"submitAgentModal": {
"button": "提交助手",
"identifier": "identifier 助手标识符",
"metaMiss": "请补全助手信息后提交,需要包含名称、描述和标签",
"placeholder": "请输入助手的标识符,需要是唯一的,比如 web-development",
"tooltips": "分享到助手市场"
},
"tab": {
"agent": "默认助手",
"common": "通用设置",
"llm": "语言模型",
"tts": "语音服务"
}
}