mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-30 17:40:53 -07:00
feat(subtitles): use loaded subtitles to guide generation timing (#249)
This commit is contained in:
@@ -3,10 +3,25 @@ import test from 'node:test';
|
||||
import {
|
||||
describeGenerationModel,
|
||||
describeGenerationProgress,
|
||||
describeGenerationRecommendation,
|
||||
describeGenerationTools,
|
||||
describeGenerationVad,
|
||||
} from './subtitle-generation-view';
|
||||
|
||||
test('only confirmed NVIDIA CUDA support recommends turbo', () => {
|
||||
assert.deepEqual(describeGenerationRecommendation({ kind: 'unavailable' }), {
|
||||
model: 'small',
|
||||
text: 'NVIDIA CUDA acceleration was not confirmed. small is recommended.',
|
||||
});
|
||||
assert.deepEqual(
|
||||
describeGenerationRecommendation({ kind: 'nvidia-cuda', gpuName: 'NVIDIA RTX 5070 Ti' }),
|
||||
{
|
||||
model: 'large-v3-turbo',
|
||||
text: 'NVIDIA CUDA is available with NVIDIA RTX 5070 Ti. large-v3-turbo is recommended.',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
test('missing tools block generation and list every install instruction', () => {
|
||||
const found = { kind: 'found', path: '/usr/bin/tool' } as const;
|
||||
assert.deepEqual(
|
||||
|
||||
Reference in New Issue
Block a user