| 123456789101112131415161718192021 |
- import { commercialApiHold } from "../model-policy.js";
- /** Historical SDK symbol. Construction is blocked by the commercial-only policy. */
- export class LocalLlamaCppProvider {
- kind = "local";
- constructor(_config = {}) {
- throw commercialApiHold("LocalLlamaCppProvider is disabled; configure an approved commercial API");
- }
- getModelId() { return "disabled-local-provider"; }
- getDimensions() { return undefined; }
- getLastError() { return "QMD_COMMERCIAL_API_HOLD"; }
- async healthcheck(_signal) {
- throw commercialApiHold("local provider healthcheck is disabled");
- }
- async embed(_text, _options = {}) {
- throw commercialApiHold("local embedding is disabled");
- }
- async embedBatch(_texts, _options = {}) {
- throw commercialApiHold("local batch embedding is disabled");
- }
- async dispose() { }
- }
|