MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / clearModelCache

Function clearModelCache

out/cli.cjs:86417–86424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86415 default:
86416 models = MODEL_LIST.openai;
86417 }
86418 const existingCache = cache?.models || {};
86419 existingCache[provider] = models;
86420 writeCache(existingCache);
86421 return models;
86422}
86423function clearModelCache() {
86424 try {
86425 if ((0, import_fs5.existsSync)(MODEL_CACHE_PATH)) {
86426 (0, import_fs5.writeFileSync)(MODEL_CACHE_PATH, "{}", "utf8");
86427 }

Callers 1

refreshModelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…