@acedatacloud/openclaw-provider 2026.5.32 → 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 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.31
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.31 (first npm release).** Chat (62 models, dynamic-id passthrough) and web search are shipping. 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).
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: ctx.modelId,
11
- name: ctx.modelId,
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(ctx.modelId),
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: ctx.modelId,
28
- name: ctx.modelId,
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(ctx.modelId),
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.32",
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",