MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / clearModelCache

Function clearModelCache

src/utils/modelCache.ts:321–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319}
320
321export function clearModelCache(): void {
322 try {
323 if (existsSync(MODEL_CACHE_PATH)) {
324 writeFileSync(MODEL_CACHE_PATH, '{}', 'utf8');
325 }
326 } catch {
327 // Silently fail
328 }
329}
330
331export function getCacheInfo(): {
332 timestamp: number | null;

Callers 1

refreshModelsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected