@@ -28,8 +28,7 @@ import { Client } from 'aisuite';
2828
2929const client = new Client ({
3030 openai: {
31- apiKey: process .env .OPENAI_API_KEY ,
32- audio: true // Enable Whisper ASR support
31+ apiKey: process .env .OPENAI_API_KEY ,
3332 },
3433 anthropic: { apiKey: process .env .ANTHROPIC_API_KEY },
3534 deepgram: { apiKey: process .env .DEEPGRAM_API_KEY },
@@ -154,8 +153,7 @@ try {
154153// Initialize client with audio support for OpenAI
155154const client = new Client ({
156155 openai: {
157- apiKey: process .env .OPENAI_API_KEY ,
158- audio: true // Required for Whisper ASR
156+ apiKey: process .env .OPENAI_API_KEY ,
159157 },
160158 deepgram: { apiKey: process .env .DEEPGRAM_API_KEY }
161159});
@@ -170,7 +168,7 @@ const deepgramResponse = await client.audio.transcriptions.create({
170168 speaker_labels: true ,
171169});
172170
173- // Using OpenAI Whisper (requires audio: true in config)
171+ // Using OpenAI Whisper
174172const openaiResponse = await client .audio .transcriptions .create ({
175173 model: ' openai:whisper-1' ,
176174 file: audioBuffer ,
@@ -214,8 +212,7 @@ const client = new Client({
214212 openai?: {
215213 apiKey: string ;
216214 baseURL ?: string ;
217- organization ?: string ;
218- audio ?: boolean ; // Enable Whisper ASR support
215+ organization ?: string ;
219216 },
220217 anthropic?: {
221218 apiKey: string ;
@@ -280,7 +277,6 @@ client.isASRProviderConfigured('deepgram'); // true
280277- Streaming tool calls require manual accumulation of arguments
281278- ASR support is limited to OpenAI Whisper (requires explicit audio configuration) and Deepgram
282279- Some provider-specific ASR features might require using provider-specific parameters
283- - OpenAI Whisper support requires additional ` audio: true ` configuration
284280
285281## Development
286282
0 commit comments