mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
4fa2ef410f
* ✨ 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>
290 lines
9.3 KiB
JSON
290 lines
9.3 KiB
JSON
{
|
|
"danger": {
|
|
"clear": {
|
|
"action": "Clear Now",
|
|
"confirm": "Confirm clearing all chat data?",
|
|
"desc": "Clear all session data",
|
|
"success": "All session messages have been cleared",
|
|
"title": "Clear All Session Messages"
|
|
},
|
|
"reset": {
|
|
"action": "Reset Now",
|
|
"confirm": "Confirm resetting all settings?",
|
|
"currentVersion": "Current Version",
|
|
"desc": "Reset all settings to default values",
|
|
"title": "Reset All Settings"
|
|
}
|
|
},
|
|
"header": {
|
|
"global": "Global Settings",
|
|
"session": "Session Settings",
|
|
"sessionWithName": "Session Settings · {{name}}"
|
|
},
|
|
"llm": {
|
|
"AzureOpenAI": {
|
|
"endpoint": {
|
|
"desc": "This value can be found in the Keys and Endpoints section when checking out a resource on an Azure site.",
|
|
"placeholder": "https://docs-test-001.openai.azure.com",
|
|
"title": "Azure API URL"
|
|
},
|
|
"models": {
|
|
"desc": "Supported models",
|
|
"title": "List of models"
|
|
},
|
|
"title": "Azure OpenAI Settings",
|
|
"token": {
|
|
"desc": "This value can be found in the Keys and Endpoints section when checking out a resource on an Azure site. You can use KEY1 or KEY2",
|
|
"placeholder": "Azure API Key",
|
|
"title": "API Key"
|
|
}
|
|
},
|
|
"OpenAI": {
|
|
"azureApiVersion": {
|
|
"desc": "Azure API version in YYYY-MM-DD format, check [latest version](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)",
|
|
"fetch": "Get list",
|
|
"title": "Azure API version"
|
|
},
|
|
"check": {
|
|
"button": "Check",
|
|
"desc": "Check that the Api Key and proxy server address are filled in correctly.",
|
|
"pass": "Connection successful",
|
|
"title": "Checking connectivity"
|
|
},
|
|
"endpoint": {
|
|
"desc": "Must contain http(s):// in addition to the default address.",
|
|
"placeholder": "https://api.openai.com/v1",
|
|
"title": "API proxy address"
|
|
},
|
|
"models": {
|
|
"count": "Total supported models: {{count}}",
|
|
"desc": "Supported models",
|
|
"fetch": "Fetching the list of models",
|
|
"notSupport": "Azure OpenAI currently does not support viewing lists of models",
|
|
"notSupportTip": "Make sure that the deployment name matches the model name",
|
|
"refetch": "Fetching the list of models",
|
|
"title": "List of models"
|
|
},
|
|
"title": "OpenAI Settings",
|
|
"token": {
|
|
"desc": "Use your own OpenAI key",
|
|
"placeholder": "OpenAI API Key",
|
|
"title": "API Key"
|
|
},
|
|
"useAzure": {
|
|
"desc": "Using OpenAI services from Azure",
|
|
"fetch": "Get list",
|
|
"title": "Azure OpenAI",
|
|
"serverConfig": "The administrator has enabled Azure OpenAI on the server side, switching is prohibited"
|
|
},
|
|
"customModelName": {
|
|
"desc": "Add custom models, separate multiple models with commas (,)",
|
|
"placeholder": "model1,model2,model3",
|
|
"title": "Custom Model Name"
|
|
}
|
|
},
|
|
"waitingForMore": "<1>Access to other models is planned</1>, so stay tuned ✨"
|
|
},
|
|
"settingAgent": {
|
|
"avatar": {
|
|
"title": "Avatar"
|
|
},
|
|
"backgroundColor": {
|
|
"title": "Background Color"
|
|
},
|
|
"description": {
|
|
"placeholder": "Please enter agent description",
|
|
"title": "Agent Description"
|
|
},
|
|
"name": {
|
|
"placeholder": "Please enter agent name",
|
|
"title": "Name"
|
|
},
|
|
"prompt": {
|
|
"placeholder": "Please enter role prompt",
|
|
"title": "Role Prompt"
|
|
},
|
|
"tag": {
|
|
"placeholder": "Please enter tag",
|
|
"title": "Tag"
|
|
},
|
|
"title": "Agent Information"
|
|
},
|
|
"settingChat": {
|
|
"chatStyleType": {
|
|
"title": "Chat Window Style",
|
|
"type": {
|
|
"chat": "Chat Mode",
|
|
"docs": "Document Mode"
|
|
}
|
|
},
|
|
"compressThreshold": {
|
|
"desc": "When the uncompressed history messages exceed this value, compression will be performed",
|
|
"title": "History Message Length Compression Threshold"
|
|
},
|
|
"enableCompressThreshold": {
|
|
"title": "Enable History Message Length Compression Threshold"
|
|
},
|
|
"enableHistoryCount": {
|
|
"alias": "Unlimited",
|
|
"limited": "Only include {{number}} session messages",
|
|
"title": "Limit History Message Count",
|
|
"unlimited": "Unlimited History Message Count"
|
|
},
|
|
"historyCount": {
|
|
"desc": "Number of history messages carried in each request",
|
|
"title": "Attached History Message Count"
|
|
},
|
|
"inputTemplate": {
|
|
"desc": "The latest user message will be filled into this template",
|
|
"placeholder": "{{text}} will be replaced with real-time input information",
|
|
"title": "User Input Preprocessing"
|
|
},
|
|
"title": "Chat Settings"
|
|
},
|
|
"settingModel": {
|
|
"enableMaxTokens": {
|
|
"title": "Enable Single Reply Limit"
|
|
},
|
|
"frequencyPenalty": {
|
|
"desc": "The larger the value, the more likely it is to reduce repeated words",
|
|
"title": "Frequency Penalty"
|
|
},
|
|
"maxTokens": {
|
|
"desc": "Maximum number of tokens used in a single interaction",
|
|
"title": "Single Reply Limit"
|
|
},
|
|
"model": {
|
|
"desc": "ChatGPT Model",
|
|
"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": "Model"
|
|
},
|
|
"presencePenalty": {
|
|
"desc": "The larger the value, the more likely it is to expand to new topics",
|
|
"title": "Topic Freshness"
|
|
},
|
|
"temperature": {
|
|
"desc": "The larger the value, the more random the reply",
|
|
"title": "Randomness",
|
|
"titleWithValue": "Randomness {{value}}"
|
|
},
|
|
"title": "Model Settings",
|
|
"topP": {
|
|
"desc": "Similar to randomness, but do not change together with randomness",
|
|
"title": "Nucleus Sampling"
|
|
}
|
|
},
|
|
"settingOpenAI": {
|
|
"endpoint": {
|
|
"desc": "Must include http(s)://, in addition to the default address",
|
|
"placeholder": "https://api.openai.com/v1",
|
|
"title": "API Proxy Address"
|
|
},
|
|
"title": "OpenAI Settings",
|
|
"token": {
|
|
"desc": "Use your own OpenAI Key",
|
|
"placeholder": "OpenAI API Key",
|
|
"title": "API Key"
|
|
}
|
|
},
|
|
"settingPlugin": {
|
|
"title": "Plugin List",
|
|
"add": "Add",
|
|
"addTooltip": "Add custom plugin",
|
|
"config": "{{id}} Plugin Configuration",
|
|
"clearDeprecated": "Remove Deprecated Plugins",
|
|
"settings": "Plugin Marketplace Settings"
|
|
},
|
|
"settingSystem": {
|
|
"accessCode": {
|
|
"desc": "Encryption access has been enabled by the administrator",
|
|
"placeholder": "Please enter access password",
|
|
"title": "Access Password"
|
|
},
|
|
"title": "System Settings"
|
|
},
|
|
"settingTTS": {
|
|
"showAllLocaleVoice": {
|
|
"desc": "If disabled, only voices for the current language will be displayed",
|
|
"title": "Show all locale voices"
|
|
},
|
|
"sttService": {
|
|
"desc": "The 'browser' option refers to the native speech recognition service in the browser",
|
|
"title": "Speech-to-Text Service"
|
|
},
|
|
"title": "Speech Services",
|
|
"ttsService": {
|
|
"desc": "If using the OpenAI text-to-speech service, ensure that the OpenAI model service is enabled",
|
|
"title": "Text-to-Speech Service"
|
|
},
|
|
"voice": {
|
|
"title": "Text-to-Speech Voices",
|
|
"desc": "Select a voice for the current assistant, different TTS services support different voices",
|
|
"preview": "Preview Voice"
|
|
},
|
|
"openai": {
|
|
"sttModel": "OpenAI Speech Recognition Model",
|
|
"ttsModel": "OpenAI Text-to-Speech Model"
|
|
},
|
|
"stt": "Speech Recognition Settings",
|
|
"sttLocale": {
|
|
"desc": "The language of the speech input, this option can improve the accuracy of speech recognition",
|
|
"title": "Speech Recognition Language"
|
|
},
|
|
"sttPersisted": {
|
|
"desc": "When enabled, speech recognition will not automatically end and requires manual click on the end button",
|
|
"title": "Manually End Speech Recognition"
|
|
},
|
|
"tts": "Text-to-Speech Settings",
|
|
"sttAutoStop": {
|
|
"desc": "When disabled, speech recognition will not automatically stop and will require manual intervention to end the process.",
|
|
"title": "Automatic Speech Recognition Termination"
|
|
}
|
|
},
|
|
"settingTheme": {
|
|
"avatar": {
|
|
"title": "Avatar"
|
|
},
|
|
"fontSize": {
|
|
"desc": "Font size of chat content",
|
|
"title": "Font Size"
|
|
},
|
|
"lang": {
|
|
"title": "Language Settings",
|
|
"autoMode": "Follow System"
|
|
},
|
|
"neutralColor": {
|
|
"desc": "Custom grayscale for different color tendencies",
|
|
"title": "Neutral Color"
|
|
},
|
|
"primaryColor": {
|
|
"desc": "Custom theme color",
|
|
"title": "Theme Color"
|
|
},
|
|
"themeMode": {
|
|
"auto": "Auto",
|
|
"dark": "Dark",
|
|
"light": "Light",
|
|
"title": "Theme"
|
|
},
|
|
"title": "Theme Settings"
|
|
},
|
|
"submitAgentModal": {
|
|
"tooltips": "Share to Assistant Market",
|
|
"button": "Submit Assistant",
|
|
"identifier": "Identifier",
|
|
"metaMiss": "Please complete the assistant information before submitting. It should include name, description, and tags.",
|
|
"placeholder": "Please enter a unique identifier for the assistant, such as web-development."
|
|
},
|
|
"tab": {
|
|
"agent": "Default Agent",
|
|
"common": "Common Settings",
|
|
"llm": "Custom LLM API",
|
|
"tts": "Speech Services"
|
|
}
|
|
}
|