Update default config (#1007)

* update default config

* update model list

* update azure tts voice list
This commit is contained in:
an-lee
2024-08-23 10:47:40 +08:00
committed by GitHub
parent 453fd4c673
commit d8afb2fda1
4 changed files with 51 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
},
{
"code": "zh-CN",
"name": "简体中文"
"name": "普通话"
},
{
"code": "zh-HK",
@@ -38,5 +38,9 @@
{
"code": "fr-FR",
"name": "Français"
},
{
"code": "th-TH",
"name": "แบบไทย"
}
]

View File

@@ -4,15 +4,22 @@ export const GPT_PROVIDERS: { [key: string]: any } = {
enjoyai: {
name: "EnjoyAI",
models: [
"gpt-4o-mini",
"gpt-4o",
"chatgpt-4o-latest",
"gpt-4-turbo",
"gpt-4-turbo-preview",
"gpt-4-vision-preview",
"gpt-4",
"gpt-4-32k",
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-instruct",
"anthropic/claude-3.5-sonnet",
"meta-llama/llama-3.1-8b-instruct",
"meta-llama/llama-3.1-70b-instruct",
"meta-llama/llama-3.1-405b-instruct",
"google/gemma-2-27b-it",
"google/gemma-2-9b-it:free",
"google/gemini-pro-1.5",
"google/gemini-flash-1.5",
"perplexity/llama-3-sonar-large-32k-online",
"deepseek/deepseek-chat",
"deepseek/deepseek-coder",
],
configurable: [
"model",
@@ -30,15 +37,11 @@ export const GPT_PROVIDERS: { [key: string]: any } = {
name: "OpenAI",
description: t("youNeedToSetupApiKeyBeforeUsingOpenAI"),
models: [
"gpt-4o-mini",
"gpt-4o",
"chatgpt-4o-latest",
"gpt-4-turbo",
"gpt-4-turbo-preview",
"gpt-4-vision-preview",
"gpt-4",
"gpt-4-32k",
"gpt-3.5-turbo",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-instruct",
],
configurable: [
"model",

View File

@@ -669,6 +669,36 @@ export const TTS_PROVIDERS: { [key: string]: any } = {
value: "zh-CN-YunjieNeural",
language: "zh-CN",
},
{
label: "HiuMaan (Female)",
value: "zh-HK-HiuMaanNeural",
language: "zh-HK",
},
{
label: "WanLung (Male)",
value: "zh-HK-WanLungNeural",
language: "zh-HK",
},
{
label: "HiuGaai (Female)",
value: "zh-HK-HiuGaaiNeural",
language: "zh-HK",
},
{
label: "Premwadee (Female)",
value: "th-TH-PremwadeeNeural",
language: "th-TH",
},
{
label: "Niwat (Male)",
value: "th-TH-NiwatNeural",
language: "th-TH",
},
{
label: "Achara (Male)",
value: "th-TH-AcharaNeural",
language: "th-TH",
},
],
},
configurable: ["model", "language", "voice"],

View File

@@ -44,7 +44,7 @@ export const LearningLanguageSettings = () => {
value={lang.code}
key={lang.code}
>
{lang.name}
{lang.name} ({lang.code})
</SelectItem>
))}
</SelectContent>