@openclaw/llama-cpp-provider 2026.8.1 → 2026.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as resolveLegacyLlamaCppModelCacheDir, D as resolveLlamaCppModelSource, E as resolveLlamaCppModelCacheDir, O as resolveLlamaCppSyntheticApiKey, S as resolveHomePath, T as resolveLlamaCppEmbeddingModel, _ as LLAMA_CPP_PROVIDER_ID, a as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL, b as meetsLlamaCppDefaultModelRamFloor, c as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_SHA256, d as DEFAULT_LLAMA_CPP_MODEL_ID, f as DEFAULT_LLAMA_CPP_MODEL_REVISION, g as LLAMA_CPP_DEFAULT_PORT, i as DEFAULT_LLAMA_CPP_EMBEDDING_CACHE_FILE, l as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_SIZE_BYTES, m as DEFAULT_LLAMA_CPP_MODEL_SIZE_BYTES, n as resolveManagedLlamaCppProviderConfig, o as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_ID, p as DEFAULT_LLAMA_CPP_MODEL_SHA256, s as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_REVISION, u as DEFAULT_LLAMA_CPP_MODEL_CACHE_FILE, v as LLAMA_CPP_PROVIDER_LABEL, w as resolveLlamaCppDataDir, x as resolveCachedLlamaCppModelPath, y as buildLlamaCppProviderConfig } from "./managed-provider-config-
|
|
1
|
+
import { C as resolveLegacyLlamaCppModelCacheDir, D as resolveLlamaCppModelSource, E as resolveLlamaCppModelCacheDir, O as resolveLlamaCppSyntheticApiKey, S as resolveHomePath, T as resolveLlamaCppEmbeddingModel, _ as LLAMA_CPP_PROVIDER_ID, a as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL, b as meetsLlamaCppDefaultModelRamFloor, c as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_SHA256, d as DEFAULT_LLAMA_CPP_MODEL_ID, f as DEFAULT_LLAMA_CPP_MODEL_REVISION, g as LLAMA_CPP_DEFAULT_PORT, i as DEFAULT_LLAMA_CPP_EMBEDDING_CACHE_FILE, l as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_SIZE_BYTES, m as DEFAULT_LLAMA_CPP_MODEL_SIZE_BYTES, n as resolveManagedLlamaCppProviderConfig, o as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_ID, p as DEFAULT_LLAMA_CPP_MODEL_SHA256, s as DEFAULT_LLAMA_CPP_EMBEDDING_MODEL_REVISION, u as DEFAULT_LLAMA_CPP_MODEL_CACHE_FILE, v as LLAMA_CPP_PROVIDER_LABEL, w as resolveLlamaCppDataDir, x as resolveCachedLlamaCppModelPath, y as buildLlamaCppProviderConfig } from "./managed-provider-config-Ovg5QQxD.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { getEmbeddingProvider } from "openclaw/plugin-sdk/embedding-providers";
|
|
@@ -97,7 +97,7 @@ function resolveManagedLlamaServerPaths(asset = selectLlamaServerAsset()) {
|
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region extensions/llama-cpp/src/llama-server-install.ts
|
|
100
|
-
const DOWNLOAD_TIMEOUT_MS =
|
|
100
|
+
const DOWNLOAD_TIMEOUT_MS = 18e5;
|
|
101
101
|
const VERSION_TIMEOUT_MS = 15e3;
|
|
102
102
|
const installationPromises = /* @__PURE__ */ new Map();
|
|
103
103
|
function compareVersion(left, right) {
|
|
@@ -435,11 +435,13 @@ async function ensureLlamaCppModel(params) {
|
|
|
435
435
|
const pending = modelPromises.get(destination);
|
|
436
436
|
if (pending) return await pending;
|
|
437
437
|
const load = (async () => {
|
|
438
|
-
if (await fsp.stat(destination).then((stat) => stat.isFile()).catch(() => false))
|
|
439
|
-
if (
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
438
|
+
if (await fsp.stat(destination).then((stat) => stat.isFile()).catch(() => false)) {
|
|
439
|
+
if (artifact.expectedSha256) {
|
|
440
|
+
if (await sha256File(destination) === artifact.expectedSha256) return destination;
|
|
441
|
+
} else {
|
|
442
|
+
await assertGguf(destination);
|
|
443
|
+
return destination;
|
|
444
|
+
}
|
|
443
445
|
}
|
|
444
446
|
if (!params.download) throw new Error(`Model is not cached at ${destination}`);
|
|
445
447
|
await downloadVerifiedFile({
|
|
@@ -838,8 +840,8 @@ const llamaCppEmbeddingProviderAdapter = {
|
|
|
838
840
|
}),
|
|
839
841
|
runtime: {
|
|
840
842
|
id: "local",
|
|
841
|
-
inlineQueryTimeoutMs:
|
|
842
|
-
inlineBatchTimeoutMs:
|
|
843
|
+
inlineQueryTimeoutMs: 3e5,
|
|
844
|
+
inlineBatchTimeoutMs: 6e5,
|
|
843
845
|
cacheKeyData: identity.cacheKeyData,
|
|
844
846
|
...identity.aliases.length > 0 ? { indexIdentityAliases: identity.aliases } : {}
|
|
845
847
|
}
|
|
@@ -8,7 +8,7 @@ const LLAMA_CPP_PROVIDER_LABEL = "llama.cpp";
|
|
|
8
8
|
const LLAMA_CPP_LOCAL_AUTH_MARKER = "llama-cpp-local";
|
|
9
9
|
const LLAMA_CPP_DEFAULT_PORT = 19432;
|
|
10
10
|
const LLAMA_CPP_READY_TIMEOUT_MS = 3e4;
|
|
11
|
-
const LLAMA_CPP_IDLE_STOP_MS =
|
|
11
|
+
const LLAMA_CPP_IDLE_STOP_MS = 6e5;
|
|
12
12
|
function resolveLlamaCppSyntheticApiKey() {
|
|
13
13
|
return LLAMA_CPP_LOCAL_AUTH_MARKER;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as resolveManagedLlamaCppProviderConfig, t as MANAGED_LLAMA_CPP_CONFIG_REQUIRED_MESSAGE } from "./managed-provider-config-
|
|
1
|
+
import { n as resolveManagedLlamaCppProviderConfig, t as MANAGED_LLAMA_CPP_CONFIG_REQUIRED_MESSAGE } from "./managed-provider-config-Ovg5QQxD.js";
|
|
2
2
|
//#region extensions/llama-cpp/provider-policy-api.ts
|
|
3
3
|
function inspectEmbeddingProviderSetup(params) {
|
|
4
4
|
if (params.provider !== "local") return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/llama-cpp-provider",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.2",
|
|
4
4
|
"description": "OpenClaw provider for managed and external llama.cpp servers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"minHostVersion": ">=2026.6.2"
|
|
25
25
|
},
|
|
26
26
|
"compat": {
|
|
27
|
-
"pluginApi": ">=2026.8.
|
|
27
|
+
"pluginApi": ">=2026.8.2"
|
|
28
28
|
},
|
|
29
29
|
"build": {
|
|
30
|
-
"openclawVersion": "2026.8.
|
|
30
|
+
"openclawVersion": "2026.8.2"
|
|
31
31
|
},
|
|
32
32
|
"release": {
|
|
33
33
|
"bundleRuntimeDependencies": false,
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"README.md"
|
|
45
45
|
],
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"openclaw": ">=2026.8.
|
|
47
|
+
"openclaw": ">=2026.8.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"openclaw": {
|