From f2c551441f6e80e69ed8cbab6e304c4075dd6bd7 Mon Sep 17 00:00:00 2001 From: linxiaodong Date: Fri, 22 Nov 2024 16:31:01 +0800 Subject: [PATCH] feat: support large v3 turbo model --- package.json | 2 +- renderer/lib/utils.ts | 7 +++++++ renderer/pages/[locale]/translateControl.tsx | 4 ++-- renderer/public/locales/en/common.json | 1 + renderer/public/locales/zh/common.json | 1 + 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b455201..f3145e5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "video-subtitle-master", "description": "视频转字幕,字幕翻译软件", - "version": "1.2.0", + "version": "1.3.0", "author": "buxuku ", "main": "app/background.js", "scripts": { diff --git a/renderer/lib/utils.ts b/renderer/lib/utils.ts index 0ebd749..c8d3cf6 100644 --- a/renderer/lib/utils.ts +++ b/renderer/lib/utils.ts @@ -55,6 +55,13 @@ export const models = [ size: '3.09 GB' }, }, + { + name: 'Large-v3-turbo', + desc: { + key: 'modelDesc.largeTurbo', + size: '1.62 GB' + } + }, { name: 'Tiny.en', desc: { diff --git a/renderer/pages/[locale]/translateControl.tsx b/renderer/pages/[locale]/translateControl.tsx index 6e9c477..f1ae990 100644 --- a/renderer/pages/[locale]/translateControl.tsx +++ b/renderer/pages/[locale]/translateControl.tsx @@ -76,7 +76,7 @@ const TranslateControl: React.FC = () => { const addOpenAIProvider = () => { const newProvider: Provider = { ...newOpenAIProvider, - id: newOpenAIProvider.name, + id: newOpenAIProvider.name?.toLowerCase(), type: 'openai', }; const updatedProviders = [...providers, newProvider]; @@ -100,7 +100,7 @@ const TranslateControl: React.FC = () => { {t('translationServiceProvider')} - {t('key')} + Key/{t('apiAddress')} {t('secret')} diff --git a/renderer/public/locales/en/common.json b/renderer/public/locales/en/common.json index 26f77a1..84881a5 100644 --- a/renderer/public/locales/en/common.json +++ b/renderer/public/locales/en/common.json @@ -47,6 +47,7 @@ "small": "Moderate text output speed, good transcription quality.", "medium": "Slow text output, best transcription quality.", "large": "Slow text output, best transcription quality.", + "largeTurbo": "With little loss of accuracy, the transfer speed is greatly improved", "tinyEn": "English only, fast text output, average transcription quality.", "baseEn": "English only, fast text output, average transcription quality.", "smallEn": "English only, moderate text output speed, good transcription quality.", diff --git a/renderer/public/locales/zh/common.json b/renderer/public/locales/zh/common.json index ccd2998..182c9bd 100644 --- a/renderer/public/locales/zh/common.json +++ b/renderer/public/locales/zh/common.json @@ -47,6 +47,7 @@ "small": "输出文字速度适中,转写文字质量较好。", "medium": "输出文字速度慢,转写文字质量最佳。", "large": "输出文字速度慢,转写文字质量最佳。", + "largeTurbo": "几乎不怎么损失精度的情况下,可大幅提高转写速度", "tinyEn": "仅支持英文,输出文字速度快,转写文字质量一般。", "baseEn": "仅支持英文,输出文字速度快,转写文字质量一般。", "smallEn": "仅支持英文,输出文字速度适中,转写文字质量较好。",