Skip to content

Commit

Permalink
feat: support large v3 turbo model
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiaodong authored and buxuku committed Nov 22, 2024
1 parent a772b29 commit f2c5514
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "video-subtitle-master",
"description": "视频转字幕,字幕翻译软件",
"version": "1.2.0",
"version": "1.3.0",
"author": "buxuku <[email protected]>",
"main": "app/background.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions renderer/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions renderer/pages/[locale]/translateControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -100,7 +100,7 @@ const TranslateControl: React.FC = () => {
<TableHeader>
<TableRow>
<TableHead>{t('translationServiceProvider')}</TableHead>
<TableHead>{t('key')}</TableHead>
<TableHead>Key/{t('apiAddress')}</TableHead>
<TableHead>{t('secret')}</TableHead>
</TableRow>
</TableHeader>
Expand Down
1 change: 1 addition & 0 deletions renderer/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
1 change: 1 addition & 0 deletions renderer/public/locales/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"small": "输出文字速度适中,转写文字质量较好。",
"medium": "输出文字速度慢,转写文字质量最佳。",
"large": "输出文字速度慢,转写文字质量最佳。",
"largeTurbo": "几乎不怎么损失精度的情况下,可大幅提高转写速度",
"tinyEn": "仅支持英文,输出文字速度快,转写文字质量一般。",
"baseEn": "仅支持英文,输出文字速度快,转写文字质量一般。",
"smallEn": "仅支持英文,输出文字速度适中,转写文字质量较好。",
Expand Down

0 comments on commit f2c5514

Please sign in to comment.