@acedatacloud/openclaw-provider 2026.5.34 → 2026.10.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/README.md +72 -59
- package/assets/icon.png +0 -0
- package/dist/index.d.ts +4 -10
- package/dist/index.js +34 -20
- package/dist/src/chat/generated-catalog.d.ts +9 -7
- package/dist/src/chat/generated-catalog.js +3893 -65
- package/dist/src/chat/onboard.d.ts +1 -1
- package/dist/src/chat/onboard.js +13 -2
- package/dist/src/chat/provider-catalog.d.ts +4 -2
- package/dist/src/chat/provider-catalog.js +2 -51
- package/dist/src/chat/runtime.d.ts +4 -0
- package/dist/src/chat/runtime.js +77 -0
- package/dist/src/constants.d.ts +1 -1
- package/dist/src/constants.js +1 -1
- package/dist/src/search/acedata-search-client.d.ts +2 -0
- package/dist/src/search/acedata-search-client.js +21 -13
- package/dist/src/search/acedata-search-config.js +6 -4
- package/dist/src/search/acedata-search-provider.d.ts +3 -2
- package/dist/src/search/acedata-search-provider.js +5 -2
- package/dist/src/search/acedata-search-shared.d.ts +2 -1
- package/dist/src/search/acedata-search-shared.js +37 -6
- package/dist/src/services/catalog.d.ts +46 -0
- package/dist/src/services/catalog.js +24 -0
- package/dist/src/services/client.d.ts +36 -0
- package/dist/src/services/client.js +315 -0
- package/dist/src/services/contracts/face.json +16 -0
- package/dist/src/services/contracts/fish-audio.json +15 -0
- package/dist/src/services/contracts/flux.json +13 -0
- package/dist/src/services/contracts/google-search.json +9 -0
- package/dist/src/services/contracts/gpt-image.json +13 -0
- package/dist/src/services/contracts/grok.json +12 -0
- package/dist/src/services/contracts/happyhorse.json +11 -0
- package/dist/src/services/contracts/kling.json +20 -0
- package/dist/src/services/contracts/midjourney.json +17 -0
- package/dist/src/services/contracts/minimax.json +13 -0
- package/dist/src/services/contracts/nano-banana.json +12 -0
- package/dist/src/services/contracts/qwen-image.json +11 -0
- package/dist/src/services/contracts/seedance.json +11 -0
- package/dist/src/services/contracts/seedream.json +13 -0
- package/dist/src/services/contracts/suno.json +27 -0
- package/dist/src/services/contracts/veo.json +15 -0
- package/dist/src/services/contracts/wan.json +12 -0
- package/dist/src/services/media.d.ts +25 -0
- package/dist/src/services/media.js +350 -0
- package/dist/src/services/parameters.d.ts +6 -0
- package/dist/src/services/parameters.js +165 -0
- package/dist/src/services/tools.d.ts +6 -0
- package/dist/src/services/tools.js +59 -0
- package/docs/architecture.md +58 -0
- package/docs/capabilities.md +75 -0
- package/docs/cookbook.md +77 -0
- package/docs/model-catalog.md +126 -0
- package/openclaw.plugin.json +5679 -8
- package/package.json +31 -23
- package/skills/acedata-face/SKILL.md +14 -0
- package/skills/acedata-fish-audio/SKILL.md +20 -0
- package/skills/acedata-flux/SKILL.md +18 -0
- package/skills/acedata-google-search/SKILL.md +14 -0
- package/skills/acedata-gpt-image/SKILL.md +18 -0
- package/skills/acedata-grok/SKILL.md +17 -0
- package/skills/acedata-happyhorse/SKILL.md +16 -0
- package/skills/acedata-kling/SKILL.md +25 -0
- package/skills/acedata-midjourney/SKILL.md +22 -0
- package/skills/acedata-minimax/SKILL.md +18 -0
- package/skills/acedata-nano-banana/SKILL.md +17 -0
- package/skills/acedata-qwen-image/SKILL.md +16 -0
- package/skills/acedata-seedance/SKILL.md +16 -0
- package/skills/acedata-seedream/SKILL.md +18 -0
- package/skills/acedata-suno/SKILL.md +32 -0
- package/skills/acedata-veo/SKILL.md +20 -0
- package/skills/acedata-wan/SKILL.md +17 -0
- package/index.ts +0 -110
- package/src/chat/generated-catalog.ts +0 -77
- package/src/chat/model-overrides.json +0 -93
- package/src/chat/onboard.ts +0 -33
- package/src/chat/provider-catalog.ts +0 -73
- package/src/constants.ts +0 -3
- package/src/search/acedata-search-client.ts +0 -160
- package/src/search/acedata-search-config.ts +0 -76
- package/src/search/acedata-search-provider.ts +0 -80
- package/src/search/acedata-search-shared.ts +0 -29
package/package.json
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acedatacloud/openclaw-provider",
|
|
3
|
-
"version": "2026.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2026.10.2",
|
|
4
|
+
"description": "Ace Data Cloud models, image, video, music, speech, search and creative tools for OpenClaw.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openclaw",
|
|
7
7
|
"openclaw-plugin",
|
|
8
8
|
"openclaw-provider",
|
|
9
9
|
"acedatacloud",
|
|
10
|
-
"ace-data-cloud",
|
|
11
10
|
"llm",
|
|
12
|
-
"
|
|
11
|
+
"web-search",
|
|
13
12
|
"image-generation",
|
|
14
13
|
"video-generation",
|
|
15
14
|
"music-generation",
|
|
16
|
-
"
|
|
15
|
+
"text-to-speech",
|
|
16
|
+
"nano-banana",
|
|
17
17
|
"suno",
|
|
18
18
|
"veo",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
19
|
+
"seedance",
|
|
20
|
+
"seedream",
|
|
21
|
+
"kling",
|
|
22
|
+
"fish-audio"
|
|
22
23
|
],
|
|
23
24
|
"homepage": "https://github.com/AceDataCloud/OpenClawProvider#readme",
|
|
24
25
|
"bugs": "https://github.com/AceDataCloud/OpenClawProvider/issues",
|
|
@@ -32,13 +33,16 @@
|
|
|
32
33
|
"files": [
|
|
33
34
|
"dist",
|
|
34
35
|
"openclaw.plugin.json",
|
|
35
|
-
"
|
|
36
|
-
"src",
|
|
36
|
+
"assets",
|
|
37
37
|
"README.md",
|
|
38
|
-
"LICENSE"
|
|
38
|
+
"LICENSE",
|
|
39
|
+
"docs/cookbook.md",
|
|
40
|
+
"docs/model-catalog.md",
|
|
41
|
+
"docs/capabilities.md",
|
|
42
|
+
"docs/architecture.md",
|
|
43
|
+
"skills"
|
|
39
44
|
],
|
|
40
45
|
"devDependencies": {
|
|
41
|
-
"@openclaw/plugin-sdk": "file:../openclaw/packages/plugin-sdk",
|
|
42
46
|
"@types/node": "^22.10.5",
|
|
43
47
|
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
44
48
|
"@typescript-eslint/parser": "^8.20.0",
|
|
@@ -46,35 +50,34 @@
|
|
|
46
50
|
"prettier": "^3.4.2",
|
|
47
51
|
"typescript": "^5.7.3",
|
|
48
52
|
"undici": "^7.2.0",
|
|
49
|
-
"vitest": "^2.1.8"
|
|
53
|
+
"vitest": "^2.1.8",
|
|
54
|
+
"openclaw": "2026.9.8"
|
|
50
55
|
},
|
|
51
56
|
"peerDependencies": {
|
|
52
|
-
"openclaw": ">=2026.
|
|
57
|
+
"openclaw": ">=2026.6.8"
|
|
53
58
|
},
|
|
54
59
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
60
|
+
"node": ">=22.19.0"
|
|
56
61
|
},
|
|
57
62
|
"publishConfig": {
|
|
58
63
|
"access": "public"
|
|
59
64
|
},
|
|
60
65
|
"openclaw": {
|
|
61
66
|
"extensions": [
|
|
62
|
-
"./index.ts"
|
|
63
|
-
],
|
|
64
|
-
"runtimeExtensions": [
|
|
65
67
|
"./dist/index.js"
|
|
66
68
|
],
|
|
67
69
|
"install": {
|
|
70
|
+
"clawhubSpec": "@acedatacloud/openclaw-provider",
|
|
68
71
|
"npmSpec": "@acedatacloud/openclaw-provider",
|
|
69
72
|
"defaultChoice": "npm",
|
|
70
|
-
"minHostVersion": ">=2026.
|
|
73
|
+
"minHostVersion": ">=2026.6.8"
|
|
71
74
|
},
|
|
72
75
|
"compat": {
|
|
73
|
-
"pluginApi": ">=2026.
|
|
76
|
+
"pluginApi": ">=2026.6.8"
|
|
74
77
|
},
|
|
75
78
|
"build": {
|
|
76
|
-
"openclawVersion": "2026.
|
|
77
|
-
"pluginSdkVersion": "2026.
|
|
79
|
+
"openclawVersion": "2026.9.8",
|
|
80
|
+
"pluginSdkVersion": "2026.9.8",
|
|
78
81
|
"bundledDist": false
|
|
79
82
|
},
|
|
80
83
|
"release": {
|
|
@@ -82,6 +85,9 @@
|
|
|
82
85
|
"publishToNpm": true
|
|
83
86
|
}
|
|
84
87
|
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"ajv": "8.20.0"
|
|
90
|
+
},
|
|
85
91
|
"scripts": {
|
|
86
92
|
"build": "tsc -p tsconfig.build.json",
|
|
87
93
|
"clean": "rm -rf dist",
|
|
@@ -92,6 +98,8 @@
|
|
|
92
98
|
"lint": "eslint . --max-warnings=0",
|
|
93
99
|
"format": "prettier --write .",
|
|
94
100
|
"sync-catalog": "node scripts/sync-catalog.mjs",
|
|
95
|
-
"sync-catalog:check": "node scripts/sync-catalog.mjs --check"
|
|
101
|
+
"sync-catalog:check": "node scripts/sync-catalog.mjs --check",
|
|
102
|
+
"sync-services:check": "node scripts/sync-services.mjs --check",
|
|
103
|
+
"sync-services": "node scripts/sync-services.mjs"
|
|
96
104
|
}
|
|
97
105
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-face
|
|
3
|
+
description: Use Face Transform through Ace Data Cloud for transform.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Face Transform via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_face_transform`: Analyze or transform faces with the Ace Data Cloud Face Transform API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
|
|
12
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
13
|
+
|
|
14
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-fish-audio
|
|
3
|
+
description: Use Fish Audio through Ace Data Cloud for fish generate audio, fish search voices, fish get voice, fish create model, fish create voice.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Fish Audio via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_fish_generate_audio`: Generate text-to-speech audio with the Ace Data Cloud Fish Audio API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_fish_search_voices`: Fish Search Voices via Ace Data Cloud. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_fish_get_voice`: Get Voice through the Ace Data Cloud Fish Audio API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_fish_create_model`: Create Model through the Ace Data Cloud Fish Audio API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
14
|
+
- `acedata_fish_create_voice`: Create Voice through the Ace Data Cloud Fish Audio API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
15
|
+
- `acedata_fish_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
16
|
+
- `acedata_fish_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
17
|
+
|
|
18
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
19
|
+
|
|
20
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-flux
|
|
3
|
+
description: Use Flux through Ace Data Cloud for generate image, edit image, generate video, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Flux via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_flux_generate_image`: Generate images with Ace Data Cloud Flux Images Generation API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_flux_edit_image`: Edit an image with Ace Data Cloud Flux Images Generation API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_flux_generate_video`: Use the Ace Data Cloud Flux APIs in Dify workflows. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_flux_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
14
|
+
- `acedata_flux_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
15
|
+
|
|
16
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
17
|
+
|
|
18
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-google-search
|
|
3
|
+
description: Use Google Search through Ace Data Cloud for serp google.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Google Search via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_serp_google`: Get structured Google SERP results via Ace Data Cloud Google SERP API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
|
|
12
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
13
|
+
|
|
14
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-gpt-image
|
|
3
|
+
description: Use GPT Image through Ace Data Cloud for generate image, edit image, list tasks, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# GPT Image via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_gpt_image_generate_image`: GPT Image Generate Image via Ace Data Cloud. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_gpt_image_edit_image`: GPT Image Edit Image via Ace Data Cloud. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_gpt_image_list_tasks`: List Tasks through the Ace Data Cloud GPT Image API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_gpt_image_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
14
|
+
- `acedata_gpt_image_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
15
|
+
|
|
16
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
17
|
+
|
|
18
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-grok
|
|
3
|
+
description: Use Grok through Ace Data Cloud for generate video, chat completions, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Grok via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_grok_generate_video`: Generate videos with Ace Data Cloud Grok Imagine Videos API (text-to-video or image-to-video). For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_grok_chat_completions`: Chat Completions through the Ace Data Cloud Grok Video API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_grok_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
13
|
+
- `acedata_grok_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
14
|
+
|
|
15
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
16
|
+
|
|
17
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-happyhorse
|
|
3
|
+
description: Use Happy Horse through Ace Data Cloud for generate video, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Happy Horse via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_happyhorse_generate_video`: Use the Ace Data Cloud Happy Horse APIs in Dify workflows. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_happyhorse_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
12
|
+
- `acedata_happyhorse_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
13
|
+
|
|
14
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
15
|
+
|
|
16
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-kling
|
|
3
|
+
description: Use Kling through Ace Data Cloud for generate video, generate motion, lip sync, talking photo, goods studio.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Kling via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_kling_generate_video`: Generate a video with Ace Data Cloud Kling Videos API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_kling_generate_motion`: Generate Motion through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_kling_lip_sync`: Lip Sync through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_kling_talking_photo`: Talking Photo through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
14
|
+
- `acedata_kling_goods_studio`: Goods Studio through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
15
|
+
- `acedata_kling_video_commerce`: Video Commerce through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
16
|
+
- `acedata_kling_virtual_try_on`: Virtual Try On through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
17
|
+
- `acedata_kling_apparel`: Apparel through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
18
|
+
- `acedata_kling_voices`: Voices through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
19
|
+
- `acedata_kling_elements`: Elements through the Ace Data Cloud Kling API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
20
|
+
- `acedata_kling_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
21
|
+
- `acedata_kling_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
22
|
+
|
|
23
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
24
|
+
|
|
25
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-midjourney
|
|
3
|
+
description: Use Midjourney through Ace Data Cloud for imagine, edits, describe, translate, videos.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Midjourney via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_midjourney_imagine`: Generate or transform images via Ace Data Cloud Midjourney Imagine API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_midjourney_edits`: Edit an image via Ace Data Cloud Midjourney Edits API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_midjourney_describe`: Get descriptions for an image via Ace Data Cloud Midjourney Describe API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_midjourney_translate`: Translate Chinese prompt to English via Ace Data Cloud Midjourney Translate API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
14
|
+
- `acedata_midjourney_videos`: Generate or extend videos via Ace Data Cloud Midjourney Videos API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
15
|
+
- `acedata_midjourney_get_seed`: Get Seed through the Ace Data Cloud Midjourney API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
16
|
+
- `acedata_midjourney_shorten`: Shorten through the Ace Data Cloud Midjourney API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
17
|
+
- `acedata_midjourney_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
18
|
+
- `acedata_midjourney_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
19
|
+
|
|
20
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
21
|
+
|
|
22
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-minimax
|
|
3
|
+
description: Use MiniMax H3 through Ace Data Cloud for generate video, list tasks, delete task, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# MiniMax H3 via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_minimax_generate_video`: Generate MiniMax H3 video from text, images, or audio guidance. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_minimax_list_tasks`: List Tasks through the Ace Data Cloud MiniMax H3 API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_minimax_delete_task`: Delete Task through the Ace Data Cloud MiniMax H3 API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_minimax_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
14
|
+
- `acedata_minimax_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
15
|
+
|
|
16
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
17
|
+
|
|
18
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-nano-banana
|
|
3
|
+
description: Use Nano Banana through Ace Data Cloud for generate image, edit image, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Nano Banana via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_nano_banana_generate_image`: Generate an image with Ace Data Cloud Nano Banana Images API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_nano_banana_edit_image`: Edit image(s) with Ace Data Cloud Nano Banana Images API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_nano_banana_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
13
|
+
- `acedata_nano_banana_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
14
|
+
|
|
15
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
16
|
+
|
|
17
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-qwen-image
|
|
3
|
+
description: Use Qwen Image through Ace Data Cloud for qwen image, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Qwen Image via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_qwen_image`: Generate or edit images with Qwen Image 3. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_qwen_image_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
12
|
+
- `acedata_qwen_image_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
13
|
+
|
|
14
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
15
|
+
|
|
16
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-seedance
|
|
3
|
+
description: Use Seedance through Ace Data Cloud for generate video, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Seedance via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_seedance_generate_video`: Generate a video with Ace Data Cloud Seedance Videos API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_seedance_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
12
|
+
- `acedata_seedance_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
13
|
+
|
|
14
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
15
|
+
|
|
16
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-seedream
|
|
3
|
+
description: Use Seedream through Ace Data Cloud for generate image, edit image, decompose image, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Seedream via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_seedream_generate_image`: Generate image(s) with Ace Data Cloud Seedream Images API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_seedream_edit_image`: Edit image(s) with Ace Data Cloud Seedream Images API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_seedream_decompose_image`: Split one image into a base plus editable transparent layers. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_seedream_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
14
|
+
- `acedata_seedream_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
15
|
+
|
|
16
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
17
|
+
|
|
18
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-suno
|
|
3
|
+
description: Use Suno through Ace Data Cloud for generate audios, generate lyrics, upload reference audio, get mp4, get mp3.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Suno via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_suno_generate_audios`: Generate songs with Ace Data Cloud Suno Audios API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_suno_generate_lyrics`: Generate Lyrics through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_suno_upload_reference_audio`: Upload Reference Audio through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_suno_get_mp4`: Get Mp4 through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
14
|
+
- `acedata_suno_get_mp3`: Get Mp3 through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
15
|
+
- `acedata_suno_get_wav`: Get Wav through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
16
|
+
- `acedata_suno_get_midi`: Get Midi through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
17
|
+
- `acedata_suno_get_timing`: Get Timing through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
18
|
+
- `acedata_suno_create_vox_audio`: Create Vox Audio through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
19
|
+
- `acedata_suno_enhance_style`: Enhance Style through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
20
|
+
- `acedata_suno_mashup_lyrics`: Mashup Lyrics through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
21
|
+
- `acedata_suno_create_voice`: Create Voice through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
22
|
+
- `acedata_suno_create_persona`: Create Persona through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
23
|
+
- `acedata_suno_list_personas`: List Personas through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
24
|
+
- `acedata_suno_delete_persona`: Delete Persona through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
25
|
+
- `acedata_suno_custom_models`: Custom Models through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
26
|
+
- `acedata_suno_projects`: Projects through the Ace Data Cloud Suno API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
27
|
+
- `acedata_suno_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
28
|
+
- `acedata_suno_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
29
|
+
|
|
30
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
31
|
+
|
|
32
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-veo
|
|
3
|
+
description: Use Veo through Ace Data Cloud for generate video, extend video, edit objects, reshoot video, upsample video.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Veo via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_veo_generate_video`: Generate videos with Ace Data Cloud Veo Videos API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_veo_extend_video`: Extend Video through the Ace Data Cloud Veo API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_veo_edit_objects`: Edit Objects through the Ace Data Cloud Veo API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
13
|
+
- `acedata_veo_reshoot_video`: Reshoot Video through the Ace Data Cloud Veo API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
14
|
+
- `acedata_veo_upsample_video`: Upsample Video through the Ace Data Cloud Veo API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
15
|
+
- `acedata_veo_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
16
|
+
- `acedata_veo_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
17
|
+
|
|
18
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
19
|
+
|
|
20
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: acedata-wan
|
|
3
|
+
description: Use Wan through Ace Data Cloud for generate video, wan3 generate, task retrieve, tasks retrieve batch.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Wan via Ace Data Cloud
|
|
7
|
+
|
|
8
|
+
Use the provider's optional tools only when the operator has enabled them. Common media generation also uses OpenClaw native media providers.
|
|
9
|
+
|
|
10
|
+
- `acedata_wan_generate_video`: Generate a video with Ace Data Cloud Wan (Alibaba) Videos API. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
11
|
+
- `acedata_wan3_generate`: Generate video from text or multimodal references. For asynchronous results, preserve task_id and use the task retrieval tool until completion. A successful submission is not completed output.
|
|
12
|
+
- `acedata_wan_task_retrieve`: Query the existing task ID; do not repeat generation while it is pending.
|
|
13
|
+
- `acedata_wan_tasks_retrieve_batch`: Query existing task IDs. Each item retains its own terminal or pending status.
|
|
14
|
+
|
|
15
|
+
Prompts/reference URLs go to `api.acedata.cloud`. Billable operations consume Ace Credits; premium models, duration, counts and resolution may increase cost. There is no extra provider-specific payment dialog. Follow the user's requested budget/settings and OpenClaw tool policy. Never choose another model as a fallback.
|
|
16
|
+
|
|
17
|
+
Treat task submission as pending. Save its task ID and call the service task retrieval tool; do not submit the same generation again after a timeout. Only terminal successful output is success. Deleting or archiving requires the user's request and `confirm: true`. Never put API keys in tool inputs.
|
package/index.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
|
-
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
3
|
-
import type {
|
|
4
|
-
ProviderResolveDynamicModelContext,
|
|
5
|
-
ProviderRuntimeModel,
|
|
6
|
-
} from "openclaw/plugin-sdk/plugin-entry";
|
|
7
|
-
import {
|
|
8
|
-
ACEDATA_BASE_URL,
|
|
9
|
-
ACEDATA_PROVIDER_ID,
|
|
10
|
-
} from "./src/constants.js";
|
|
11
|
-
import {
|
|
12
|
-
buildAcedataChatProvider,
|
|
13
|
-
isAcedataReasoningModel,
|
|
14
|
-
} from "./src/chat/provider-catalog.js";
|
|
15
|
-
import {
|
|
16
|
-
ACEDATA_DEFAULT_MODEL_REF,
|
|
17
|
-
applyAcedataConfig,
|
|
18
|
-
} from "./src/chat/onboard.js";
|
|
19
|
-
import { createAcedataWebSearchProvider } from "./src/search/acedata-search-provider.js";
|
|
20
|
-
|
|
21
|
-
const ZERO_COST = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 } as const;
|
|
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
|
-
|
|
32
|
-
function resolveDynamicChatModel(
|
|
33
|
-
ctx: ProviderResolveDynamicModelContext,
|
|
34
|
-
): ProviderRuntimeModel {
|
|
35
|
-
const bareId = stripAcedataProviderPrefix(ctx.modelId);
|
|
36
|
-
return {
|
|
37
|
-
id: bareId,
|
|
38
|
-
name: bareId,
|
|
39
|
-
api: "openai-completions",
|
|
40
|
-
provider: ACEDATA_PROVIDER_ID,
|
|
41
|
-
baseUrl: ACEDATA_BASE_URL,
|
|
42
|
-
reasoning: isAcedataReasoningModel(bareId),
|
|
43
|
-
input: ["text", "image"],
|
|
44
|
-
cost: ZERO_COST,
|
|
45
|
-
contextWindow: 128_000,
|
|
46
|
-
maxTokens: 8_192,
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export default definePluginEntry({
|
|
51
|
-
id: ACEDATA_PROVIDER_ID,
|
|
52
|
-
name: "Ace Data Cloud Provider",
|
|
53
|
-
description: "Bundled Ace Data Cloud provider plugin (chat, image, video, music, search)",
|
|
54
|
-
register(api) {
|
|
55
|
-
api.registerProvider({
|
|
56
|
-
id: ACEDATA_PROVIDER_ID,
|
|
57
|
-
label: "Ace Data Cloud",
|
|
58
|
-
docsPath: "/providers/acedatacloud",
|
|
59
|
-
envVars: ["ACEDATA_API_KEY", "ACEDATACLOUD_API_KEY"],
|
|
60
|
-
auth: [
|
|
61
|
-
createProviderApiKeyAuthMethod({
|
|
62
|
-
providerId: ACEDATA_PROVIDER_ID,
|
|
63
|
-
methodId: "api-key",
|
|
64
|
-
label: "Ace Data Cloud API key",
|
|
65
|
-
hint: "API key from https://platform.acedata.cloud/console/applications",
|
|
66
|
-
optionKey: "acedataApiKey",
|
|
67
|
-
flagName: "--acedata-api-key",
|
|
68
|
-
envVar: "ACEDATA_API_KEY",
|
|
69
|
-
promptMessage: "Enter your Ace Data Cloud API key",
|
|
70
|
-
defaultModel: ACEDATA_DEFAULT_MODEL_REF,
|
|
71
|
-
expectedProviders: [ACEDATA_PROVIDER_ID],
|
|
72
|
-
applyConfig: (cfg) => applyAcedataConfig(cfg),
|
|
73
|
-
wizard: {
|
|
74
|
-
choiceId: "acedatacloud-api-key",
|
|
75
|
-
choiceLabel: "Ace Data Cloud API key",
|
|
76
|
-
groupId: ACEDATA_PROVIDER_ID,
|
|
77
|
-
groupLabel: "Ace Data Cloud",
|
|
78
|
-
groupHint: "API key",
|
|
79
|
-
onboardingScopes: ["text-inference"],
|
|
80
|
-
},
|
|
81
|
-
}),
|
|
82
|
-
],
|
|
83
|
-
catalog: {
|
|
84
|
-
order: "simple",
|
|
85
|
-
run: async (ctx) => {
|
|
86
|
-
const apiKey = ctx.resolveProviderApiKey(ACEDATA_PROVIDER_ID).apiKey;
|
|
87
|
-
if (!apiKey) {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
provider: {
|
|
92
|
-
...buildAcedataChatProvider(),
|
|
93
|
-
apiKey,
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
staticCatalog: {
|
|
99
|
-
order: "simple",
|
|
100
|
-
run: async () => ({
|
|
101
|
-
provider: buildAcedataChatProvider(),
|
|
102
|
-
}),
|
|
103
|
-
},
|
|
104
|
-
resolveDynamicModel: (ctx) => resolveDynamicChatModel(ctx),
|
|
105
|
-
});
|
|
106
|
-
api.registerWebSearchProvider(createAcedataWebSearchProvider());
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
export { resolveDynamicChatModel, stripAcedataProviderPrefix };
|