Skip to content

Commit d2e765c

Browse files
7hokerzMengqinShen-GL
authored andcommitted
feat(js/plugins/compat-oai): generalize STT module naming and add gpt-4o-mini-transcribe (#4280)
1 parent c850886 commit d2e765c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/plugins/compat-oai/src/openai/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ import {
5454
openAIModelRef,
5555
SUPPORTED_GPT_MODELS,
5656
} from './gpt.js';
57+
import { openAITranscriptionModelRef, SUPPORTED_STT_MODELS } from './stt.js';
5758
import { openAISpeechModelRef, SUPPORTED_TTS_MODELS } from './tts.js';
58-
import {
59-
openAITranscriptionModelRef,
60-
SUPPORTED_STT_MODELS,
61-
} from './whisper.js';
6259

6360
export type OpenAIPluginOptions = Omit<PluginOptions, 'name' | 'baseURL'>;
6461

js/plugins/compat-oai/src/openai/whisper.ts renamed to js/plugins/compat-oai/src/openai/stt.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export const SUPPORTED_STT_MODELS = {
3535
'gpt-4o-transcribe': openAITranscriptionModelRef({
3636
name: 'gpt-4o-transcribe',
3737
}),
38+
'gpt-4o-mini-transcribe': openAITranscriptionModelRef({
39+
name: 'gpt-4o-mini-transcribe',
40+
}),
3841
'whisper-1': openAITranscriptionModelRef({
3942
name: 'whisper-1',
4043
}),

0 commit comments

Comments
 (0)