diff --git a/src/resources/workers/ai.ts b/src/resources/workers/ai.ts index 157bd1aa2d..e4c466a4a1 100644 --- a/src/resources/workers/ai.ts +++ b/src/resources/workers/ai.ts @@ -58,6 +58,8 @@ export namespace AIRunResponse { export interface SpeechRecognition { text: string; + vtt?: string; + word_count?: number; words?: Array; diff --git a/tests/api-resources/workers/ai.test.ts b/tests/api-resources/workers/ai.test.ts index 57f286abe1..ee8d5d0cb9 100644 --- a/tests/api-resources/workers/ai.test.ts +++ b/tests/api-resources/workers/ai.test.ts @@ -14,7 +14,7 @@ describe('resource ai', () => { test.skip('run: only required params', async () => { const responsePromise = cloudflare.workers.ai.run('string', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - text: 'string', + text: 'x', }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -29,7 +29,7 @@ describe('resource ai', () => { test.skip('run: required and optional params', async () => { const response = await cloudflare.workers.ai.run('string', { account_id: '023e105f4ecef8ad9ca31a8372d0c353', - text: 'string', + text: 'x', }); }); });