Skip to main content

clearStaleModels()v4.0.518

Removes cached model files that are no longer returned by getAvailableModels(). There are no stale models in the current version, so this function resolves without changing the cache.

Call this function when the page loads to remove models discontinued by a newer version of @remotion/whisper-webgpu.

clear-stale-models.ts
import {clearStaleModels} from '@remotion/whisper-webgpu'; await clearStaleModels();

Return type

A Promise<void> that resolves after stale models have been removed.

Compatibility

BrowsersEnvironments
Chrome
Firefox
Safari

See also