MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / clearModelCache

Function clearModelCache

local_inference/localInferenceService.js:114–120  ·  view source on GitHub ↗
(backendId, modelId)

Source from the content-addressed store, hash-verified

112 return backend.createEmbedding(normalized, { ...options, emitStatus: emit });
113 },
114 async clearModelCache(backendId, modelId) {
115 const backend = resolveBackendOrThrow(backendId);
116 if (typeof backend.clearModelCache !== 'function') {
117 throw new Error('Model cache clearing is not supported for this backend.');
118 }
119 return backend.clearModelCache(modelId);
120 },
121 async clearAllModelCache(backendId) {
122 const backend = resolveBackendOrThrow(backendId);
123 if (typeof backend.clearAllModelCache !== 'function') {

Callers

nothing calls this directly

Calls 1

resolveBackendOrThrowFunction · 0.85

Tested by

no test coverage detected