@openclaw/synthetic-provider 2026.10.10 → 2026.10.34
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
package/dist/models.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region extensions/synthetic/models.ts
|
|
2
2
|
const SYNTHETIC_BASE_URL = "https://api.synthetic.new/anthropic";
|
|
3
3
|
const SYNTHETIC_DEFAULT_MODEL_ID = "hf:MiniMaxAI/MiniMax-M3";
|
|
4
4
|
const SYNTHETIC_DEFAULT_MODEL_REF = `synthetic/${SYNTHETIC_DEFAULT_MODEL_ID}`;
|
|
@@ -77,4 +77,5 @@ function buildSyntheticModelDefinition(entry) {
|
|
|
77
77
|
maxTokens: entry.maxTokens
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
+
//#endregion
|
|
80
81
|
export { SYNTHETIC_BASE_URL, SYNTHETIC_DEFAULT_MODEL_ID, SYNTHETIC_DEFAULT_MODEL_REF, SYNTHETIC_MODEL_CATALOG, buildSyntheticModelDefinition };
|
package/dist/onboard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SYNTHETIC_BASE_URL, SYNTHETIC_DEFAULT_MODEL_REF, SYNTHETIC_MODEL_CATALOG, buildSyntheticModelDefinition } from "./models.js";
|
|
2
2
|
import { createModelCatalogPresetAppliers, createProviderConnectionPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
|
-
|
|
3
|
+
//#region extensions/synthetic/onboard.ts
|
|
4
4
|
const syntheticPreset = {
|
|
5
5
|
primaryModelRef: SYNTHETIC_DEFAULT_MODEL_REF,
|
|
6
6
|
resolveParams: () => ({
|
|
@@ -16,4 +16,5 @@ const syntheticPreset = {
|
|
|
16
16
|
};
|
|
17
17
|
const { applyConfig: applySyntheticConfig, applyProviderConfig: applySyntheticProviderConfig } = createModelCatalogPresetAppliers(syntheticPreset);
|
|
18
18
|
const { applyConfig: applySyntheticConnectionConfig } = createProviderConnectionPresetAppliers(syntheticPreset);
|
|
19
|
+
//#endregion
|
|
19
20
|
export { SYNTHETIC_DEFAULT_MODEL_REF, applySyntheticConfig, applySyntheticConnectionConfig, applySyntheticProviderConfig };
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SYNTHETIC_BASE_URL, SYNTHETIC_MODEL_CATALOG, buildSyntheticModelDefinition } from "./models.js";
|
|
2
|
+
import { resolveDefaultModelMaxTokens } from "openclaw/plugin-sdk/provider-model-shared";
|
|
2
3
|
import { asOptionalRecord, asPositiveSafeInteger, filterStringEntries, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
|
|
4
|
+
//#region extensions/synthetic/provider-catalog.ts
|
|
4
5
|
function buildSyntheticProvider() {
|
|
5
6
|
return {
|
|
6
7
|
baseUrl: SYNTHETIC_BASE_URL,
|
|
@@ -33,7 +34,7 @@ function projectSyntheticModels(rows, fallback) {
|
|
|
33
34
|
reasoning: features.includes("reasoning") || efforts.some((effort) => effort !== "none"),
|
|
34
35
|
input: input.includes("image") ? ["text", "image"] : ["text"],
|
|
35
36
|
contextWindow,
|
|
36
|
-
maxTokens: Math.min(asPositiveSafeInteger(record.max_output_length) ?? seed?.maxTokens ??
|
|
37
|
+
maxTokens: Math.min(asPositiveSafeInteger(record.max_output_length) ?? seed?.maxTokens ?? resolveDefaultModelMaxTokens(contextWindow), contextWindow),
|
|
37
38
|
cost: {
|
|
38
39
|
input: readTokenPrice(pricing?.prompt) ?? seed?.cost.input ?? 0,
|
|
39
40
|
output: readTokenPrice(pricing?.completion) ?? seed?.cost.output ?? 0,
|
|
@@ -55,4 +56,5 @@ const SYNTHETIC_MODEL_DISCOVERY = {
|
|
|
55
56
|
},
|
|
56
57
|
projectRows: projectSyntheticModels
|
|
57
58
|
};
|
|
59
|
+
//#endregion
|
|
58
60
|
export { SYNTHETIC_MODEL_DISCOVERY, buildSyntheticProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/synthetic-provider",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.34",
|
|
4
4
|
"description": "OpenClaw Synthetic provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.7.2"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.
|
|
21
|
+
"pluginApi": ">=2026.11.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.10.
|
|
24
|
+
"openclawVersion": "2026.10.34",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.
|
|
43
|
+
"openclaw": ">=2026.11.4"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/synthetic/api.ts"},{"output":"index.js","source":"extensions/synthetic/index.ts"},{"output":"models.js","source":"extensions/synthetic/models.ts"},{"output":"onboard.js","source":"extensions/synthetic/onboard.ts"},{"output":"provider-catalog.js","source":"extensions/synthetic/provider-catalog.ts"}],"chunks":[{"output":"api.js","sha256":"c8f329864bbeee7883840241fda3e61f7ac1aa9bfbe3c763ae9be2aed2d42848","facadeSource":"extensions/synthetic/api.ts","sources":[]},{"output":"index.js","sha256":"9a6bfe284805690583dc2fd7c4d2ffb871c1834f0755cd238cfceb3d79b9e5c1","facadeSource":"extensions/synthetic/index.ts","sources":["extensions/synthetic/index.ts","extensions/synthetic/openclaw.plugin.json"]},{"output":"models.js","sha256":"d08b5b4f407e420d3f558a5b012f8493a5cd3007d6aaf0f0afa2cd0191b654be","facadeSource":"extensions/synthetic/models.ts","sources":["extensions/synthetic/models.ts"]},{"output":"onboard.js","sha256":"8ecbed24342ce600541290fd92750e717182dcdfac265c22cfba788724ffd20c","facadeSource":"extensions/synthetic/onboard.ts","sources":["extensions/synthetic/onboard.ts"]},{"output":"provider-catalog.js","sha256":"7cfb10ec1f0f286071b5f1c01237df7c250159d0371f1eeddda37f079541f678","facadeSource":"extensions/synthetic/provider-catalog.ts","sources":["extensions/synthetic/provider-catalog.ts"]}],"unrenderedSources":["extensions/synthetic/api.ts"]}
|