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.
This also removes model files downloaded from Hugging Face by versions before 4.0.522. Current models downloaded from remotion.media and models used by other Transformers.js workflows are preserved.
clear-stale-models.tsimport {clearStaleModels } from '@remotion/whisper-webgpu'; awaitclearStaleModels ();
Return type
A Promise<void> that resolves after stale models have been removed.
Compatibility
| Browsers | Environments | |||||
|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | ||||