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.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 | ||||