@openclaw/vydra-provider 2026.9.1-beta.1 → 2026.9.1
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/shared.js +4 -1
- package/dist/speech-provider.js +4 -2
- package/package.json +4 -4
package/dist/shared.js
CHANGED
|
@@ -37,7 +37,10 @@ function normalizeVydraBaseUrl(value) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
function resolveVydraBaseUrlFromConfig(cfg) {
|
|
40
|
-
|
|
40
|
+
const models = asOptionalRecord(asOptionalRecord(cfg)?.models);
|
|
41
|
+
const providers = asOptionalRecord(models?.providers);
|
|
42
|
+
const vydra = asOptionalRecord(providers?.vydra);
|
|
43
|
+
return normalizeVydraBaseUrl(normalizeOptionalString(vydra?.baseUrl));
|
|
41
44
|
}
|
|
42
45
|
async function resolveVydraRequestContext(params) {
|
|
43
46
|
const auth = await resolveApiKeyForProvider({
|
package/dist/speech-provider.js
CHANGED
|
@@ -10,7 +10,8 @@ const VYDRA_SPEECH_VOICES = [{
|
|
|
10
10
|
name: "Rachel"
|
|
11
11
|
}];
|
|
12
12
|
function normalizeVydraSpeechConfig(rawConfig) {
|
|
13
|
-
const
|
|
13
|
+
const providers = asOptionalRecord(rawConfig.providers);
|
|
14
|
+
const raw = asOptionalRecord(providers?.vydra) ?? asOptionalRecord(rawConfig.vydra);
|
|
14
15
|
return {
|
|
15
16
|
apiKey: normalizeResolvedSecretInputString({
|
|
16
17
|
value: raw?.apiKey,
|
|
@@ -78,7 +79,8 @@ function buildVydraSpeechProvider() {
|
|
|
78
79
|
});
|
|
79
80
|
try {
|
|
80
81
|
await assertOkOrThrowHttpError(response, "Vydra speech synthesis failed");
|
|
81
|
-
const
|
|
82
|
+
const payload = await readProviderJsonResponse(response, "Vydra speech synthesis");
|
|
83
|
+
const audioUrl = extractVydraResultUrls(payload, "audio")[0];
|
|
82
84
|
if (!audioUrl) throw new Error("Vydra speech synthesis response missing audio URL");
|
|
83
85
|
const audio = await downloadVydraAsset({
|
|
84
86
|
url: audioUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/vydra-provider",
|
|
3
|
-
"version": "2026.9.1
|
|
3
|
+
"version": "2026.9.1",
|
|
4
4
|
"description": "OpenClaw Vydra media 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.9.1
|
|
21
|
+
"pluginApi": ">=2026.9.1"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.1
|
|
24
|
+
"openclawVersion": "2026.9.1",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.9.1
|
|
41
|
+
"openclaw": ">=2026.9.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|