@acedatacloud/openclaw-provider 2026.5.31 → 2026.5.33
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/README.md +4 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +12 -3
- package/index.ts +15 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ openclaw onboard --auth-choice acedatacloud-api-key --acedata-api-key <YOUR_KEY>
|
|
|
22
22
|
|
|
23
23
|
Get a key at [`platform.acedata.cloud/console/applications`](https://platform.acedata.cloud/console/applications) — first credentials include free credits.
|
|
24
24
|
|
|
25
|
-
## What you get in v2026.5.
|
|
25
|
+
## What you get in v2026.5.33
|
|
26
26
|
|
|
27
27
|
| Capability | Status | Notes |
|
|
28
28
|
|---|---|---|
|
|
@@ -34,7 +34,9 @@ Get a key at [`platform.acedata.cloud/console/applications`](https://platform.ac
|
|
|
34
34
|
|
|
35
35
|
## Status
|
|
36
36
|
|
|
37
|
-
**v2026.5.
|
|
37
|
+
**v2026.5.33.** Chat (62 models, dynamic-id passthrough) and web search are shipping and validated end-to-end on `openclaw >= 2026.4.2`. v2026.5.33 fixes a dynamic-model resolution bug where the qualified `acedatacloud/<model>` id leaked into the request payload — the bare upstream model id is now sent so dynamic-catalog passthrough works for every model the API exposes. Image / video / music modality providers are tracked as follow-ups — see the [PR board](https://github.com/AceDataCloud/OpenClawProvider/pulls) and the [plan](https://github.com/AceDataCloud/Index/blob/main/.plans/OPENCLAW-PROVIDER.md).
|
|
38
|
+
|
|
39
|
+
Full setup guide: **[docs/cookbook.md](docs/cookbook.md)**.
|
|
38
40
|
|
|
39
41
|
## Configuration
|
|
40
42
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { ProviderResolveDynamicModelContext, ProviderRuntimeModel } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
+
declare function stripAcedataProviderPrefix(modelId: string): string;
|
|
3
|
+
declare function resolveDynamicChatModel(ctx: ProviderResolveDynamicModelContext): ProviderRuntimeModel;
|
|
1
4
|
declare const _default: {
|
|
2
5
|
id: string;
|
|
3
6
|
name: string;
|
|
@@ -6,3 +9,4 @@ declare const _default: {
|
|
|
6
9
|
register: NonNullable<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition["register"]>;
|
|
7
10
|
} & Pick<import("openclaw/plugin-sdk/plugin-entry").OpenClawPluginDefinition, "kind" | "reload" | "nodeHostCommands" | "securityAuditCollectors">;
|
|
8
11
|
export default _default;
|
|
12
|
+
export { resolveDynamicChatModel, stripAcedataProviderPrefix };
|
package/dist/index.js
CHANGED
|
@@ -5,14 +5,22 @@ import { buildAcedataChatProvider, isAcedataReasoningModel, } from "./src/chat/p
|
|
|
5
5
|
import { ACEDATA_DEFAULT_MODEL_REF, applyAcedataConfig, } from "./src/chat/onboard.js";
|
|
6
6
|
import { createAcedataWebSearchProvider } from "./src/search/acedata-search-provider.js";
|
|
7
7
|
const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
|
|
8
|
+
const ACEDATA_MODEL_ID_PREFIX_RE = new RegExp(`^${ACEDATA_PROVIDER_ID}\\/`);
|
|
9
|
+
// OpenClaw passes the qualified id (e.g. "acedatacloud/claude-haiku-4-5-20251001")
|
|
10
|
+
// when a model is not in the static catalog. The api.acedata.cloud upstream
|
|
11
|
+
// expects the bare provider model id in the request payload.
|
|
12
|
+
function stripAcedataProviderPrefix(modelId) {
|
|
13
|
+
return modelId.replace(ACEDATA_MODEL_ID_PREFIX_RE, "");
|
|
14
|
+
}
|
|
8
15
|
function resolveDynamicChatModel(ctx) {
|
|
16
|
+
const bareId = stripAcedataProviderPrefix(ctx.modelId);
|
|
9
17
|
return {
|
|
10
|
-
id:
|
|
11
|
-
name:
|
|
18
|
+
id: bareId,
|
|
19
|
+
name: bareId,
|
|
12
20
|
api: "openai-completions",
|
|
13
21
|
provider: ACEDATA_PROVIDER_ID,
|
|
14
22
|
baseUrl: ACEDATA_BASE_URL,
|
|
15
|
-
reasoning: isAcedataReasoningModel(
|
|
23
|
+
reasoning: isAcedataReasoningModel(bareId),
|
|
16
24
|
input: ["text", "image"],
|
|
17
25
|
cost: ZERO_COST,
|
|
18
26
|
contextWindow: 128_000,
|
|
@@ -78,3 +86,4 @@ export default definePluginEntry({
|
|
|
78
86
|
api.registerWebSearchProvider(createAcedataWebSearchProvider());
|
|
79
87
|
},
|
|
80
88
|
});
|
|
89
|
+
export { resolveDynamicChatModel, stripAcedataProviderPrefix };
|
package/index.ts
CHANGED
|
@@ -20,16 +20,26 @@ import { createAcedataWebSearchProvider } from "./src/search/acedata-search-prov
|
|
|
20
20
|
|
|
21
21
|
const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 } as const;
|
|
22
22
|
|
|
23
|
+
const ACEDATA_MODEL_ID_PREFIX_RE = new RegExp(`^${ACEDATA_PROVIDER_ID}\\/`);
|
|
24
|
+
|
|
25
|
+
// OpenClaw passes the qualified id (e.g. "acedatacloud/claude-haiku-4-5-20251001")
|
|
26
|
+
// when a model is not in the static catalog. The api.acedata.cloud upstream
|
|
27
|
+
// expects the bare provider model id in the request payload.
|
|
28
|
+
function stripAcedataProviderPrefix(modelId: string): string {
|
|
29
|
+
return modelId.replace(ACEDATA_MODEL_ID_PREFIX_RE, "");
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
function resolveDynamicChatModel(
|
|
24
33
|
ctx: ProviderResolveDynamicModelContext,
|
|
25
34
|
): ProviderRuntimeModel {
|
|
35
|
+
const bareId = stripAcedataProviderPrefix(ctx.modelId);
|
|
26
36
|
return {
|
|
27
|
-
id:
|
|
28
|
-
name:
|
|
37
|
+
id: bareId,
|
|
38
|
+
name: bareId,
|
|
29
39
|
api: "openai-completions",
|
|
30
40
|
provider: ACEDATA_PROVIDER_ID,
|
|
31
41
|
baseUrl: ACEDATA_BASE_URL,
|
|
32
|
-
reasoning: isAcedataReasoningModel(
|
|
42
|
+
reasoning: isAcedataReasoningModel(bareId),
|
|
33
43
|
input: ["text", "image"],
|
|
34
44
|
cost: ZERO_COST,
|
|
35
45
|
contextWindow: 128_000,
|
|
@@ -96,3 +106,5 @@ export default definePluginEntry({
|
|
|
96
106
|
api.registerWebSearchProvider(createAcedataWebSearchProvider());
|
|
97
107
|
},
|
|
98
108
|
});
|
|
109
|
+
|
|
110
|
+
export { resolveDynamicChatModel, stripAcedataProviderPrefix };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acedatacloud/openclaw-provider",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.33",
|
|
4
4
|
"description": "OpenClaw provider plugin for Ace Data Cloud — chat, image, video, music, and web-search across 50+ AI models through a single OpenAI-compatible endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openclaw",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vitest": "^2.1.8"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"openclaw": ">=2026.
|
|
52
|
+
"openclaw": ">=2026.4.2"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=20"
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"install": {
|
|
68
68
|
"npmSpec": "@acedatacloud/openclaw-provider",
|
|
69
69
|
"defaultChoice": "npm",
|
|
70
|
-
"minHostVersion": ">=2026.
|
|
70
|
+
"minHostVersion": ">=2026.4.2"
|
|
71
71
|
},
|
|
72
72
|
"compat": {
|
|
73
|
-
"pluginApi": ">=2026.
|
|
73
|
+
"pluginApi": ">=2026.4.2"
|
|
74
74
|
},
|
|
75
75
|
"build": {
|
|
76
|
-
"openclawVersion": "2026.5.
|
|
77
|
-
"pluginSdkVersion": "2026.5.
|
|
76
|
+
"openclawVersion": "2026.5.32",
|
|
77
|
+
"pluginSdkVersion": "2026.5.32",
|
|
78
78
|
"bundledDist": false
|
|
79
79
|
},
|
|
80
80
|
"release": {
|