(backendId, modelId)
| 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') { |
nothing calls this directly
no test coverage detected