Skip to content

Commit 16ac29e

Browse files
Backport: fix(providers/assemblyai): remove topics (#9703)
This is an automated backport of #9698 to the release-v5.0 branch. Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
1 parent 8332143 commit 16ac29e

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.changeset/big-chicken-jam.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@ai-sdk/assemblyai': patch
3+
---
4+
5+
fix(providers/assemblyai): remove topics
6+
7+
We were told the feature was priveatly beta-tested but never rolled out.

packages/assemblyai/src/assemblyai-api-types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,6 @@ export type AssemblyAITranscriptionAPITypes = {
339339
| 'headline'
340340
| 'paragraph';
341341

342-
/**
343-
* The list of custom topics
344-
*/
345-
topics?: string[];
346-
347342
/**
348343
* The header name to be sent with the transcript completed or failed webhook requests
349344
*/

packages/assemblyai/src/assemblyai-transcription-model.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ describe('doGenerate', () => {
220220
summary_type: 'bullets',
221221
summary_model: 'informative',
222222
summary: '- Hello, world!',
223-
topics: ['topics'],
224223
sentiment_analysis: true,
225224
entity_detection: true,
226225
entities: [
@@ -241,7 +240,6 @@ describe('doGenerate', () => {
241240
error: 'error',
242241
dual_channel: false,
243242
speed_boost: true,
244-
custom_topics: true,
245243
},
246244
};
247245
}

packages/assemblyai/src/assemblyai-transcription-model.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ const assemblyaiProviderOptionsSchema = z.object({
145145
* Type of summary to generate.
146146
*/
147147
summaryType: z.string().nullish(),
148-
/**
149-
* List of topics to identify in the transcription.
150-
*/
151-
topics: z.array(z.string()).nullish(),
152148
/**
153149
* Name of the authentication header for webhook requests.
154150
*/
@@ -247,7 +243,6 @@ export class AssemblyAITranscriptionModel implements TranscriptionModelV2 {
247243
body.summary_model =
248244
(assemblyaiOptions.summaryModel as never) ?? undefined;
249245
body.summary_type = (assemblyaiOptions.summaryType as never) ?? undefined;
250-
body.topics = assemblyaiOptions.topics ?? undefined;
251246
body.webhook_auth_header_name =
252247
assemblyaiOptions.webhookAuthHeaderName ?? undefined;
253248
body.webhook_auth_header_value =

0 commit comments

Comments
 (0)