diff --git a/plugins/openai/src/models.ts b/plugins/openai/src/models.ts index 12332b479..23cc7a704 100644 --- a/plugins/openai/src/models.ts +++ b/plugins/openai/src/models.ts @@ -105,8 +105,6 @@ export type GroqChatModels = | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b'; -export type GroqAudioModels = 'whisper-large-v3' | 'whisper-large-v3-turbo'; - export type DeepSeekChatModels = 'deepseek-coder' | 'deepseek-chat'; export type TogetherChatModels = diff --git a/plugins/openai/src/stt.ts b/plugins/openai/src/stt.ts index 14c7a3779..099c6a315 100644 --- a/plugins/openai/src/stt.ts +++ b/plugins/openai/src/stt.ts @@ -4,7 +4,7 @@ import { type AudioBuffer, mergeFrames, normalizeLanguage, stt } from '@livekit/agents'; import type { AudioFrame } from '@livekit/rtc-node'; import { OpenAI } from 'openai'; -import type { GroqAudioModels, WhisperModels } from './models.js'; +import type { WhisperModels } from './models.js'; export interface STTOptions { apiKey?: string; @@ -68,35 +68,6 @@ export class STT extends stt.STT { }); } - /** - * Create a new instance of Groq STT. - * - * @remarks - * `apiKey` must be set to your Groq API key, either using the argument or by setting the - * `GROQ_API_KEY` environment variable. - */ - static withGroq( - opts: Partial<{ - model: string | GroqAudioModels; - apiKey?: string; - baseURL?: string; - client: OpenAI; - language: string; - detectLanguage: boolean; - }> = {}, - ): STT { - opts.apiKey = opts.apiKey || process.env.GROQ_API_KEY; - if (opts.apiKey === undefined) { - throw new Error('Groq API key is required, whether as an argument or as $GROQ_API_KEY'); - } - - return new STT({ - model: 'whisper-large-v3-turbo', - baseURL: 'https://api.groq.com/openai/v1', - ...opts, - }); - } - /** * Create a new instance of OVHcloud AI Endpoints STT. *