Skip to content

Commit dba0e09

Browse files
fix: restrict install hint to missing-provider errors only (P1)
Capability-missing errors (audio transcription not available, video understanding not available) no longer include the install hint — the provider is already loaded, so telling the user to install the plugin would be misleading. Co-Authored-By: Claude <[email protected]>
1 parent 40d32f1 commit dba0e09

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/media-understanding/runner.entries.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,7 @@ export async function runProviderEntry(params: {
805805

806806
if (capability === "audio") {
807807
if (!provider.transcribeAudio) {
808-
throw new Error(
809-
`Audio transcription provider "${providerId}" not available.${formatMissingProviderHint(providerId)}`,
810-
);
808+
throw new Error(`Audio transcription provider "${providerId}" not available.`);
811809
}
812810
const transcribeAudio = provider.transcribeAudio;
813811
const requestOverrides = resolveMediaRequestOverrides(params.config);
@@ -884,9 +882,7 @@ export async function runProviderEntry(params: {
884882
}
885883

886884
if (!provider.describeVideo) {
887-
throw new Error(
888-
`Video understanding provider "${providerId}" not available.${formatMissingProviderHint(providerId)}`,
889-
);
885+
throw new Error(`Video understanding provider "${providerId}" not available.`);
890886
}
891887
const describeVideo = provider.describeVideo;
892888
const media = await params.cache.getBuffer({

0 commit comments

Comments
 (0)