@openclaw/mistral-provider 2026.8.1 → 2026.8.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.
|
@@ -11,13 +11,14 @@ const MISTRAL_REALTIME_CONNECT_TIMEOUT_MS = 1e4;
|
|
|
11
11
|
const MISTRAL_REALTIME_CLOSE_TIMEOUT_MS = 5e3;
|
|
12
12
|
const MISTRAL_REALTIME_MAX_RECONNECT_ATTEMPTS = 5;
|
|
13
13
|
const MISTRAL_REALTIME_RECONNECT_DELAY_MS = 1e3;
|
|
14
|
-
const MISTRAL_REALTIME_MAX_QUEUED_BYTES =
|
|
14
|
+
const MISTRAL_REALTIME_MAX_QUEUED_BYTES = 2097152;
|
|
15
15
|
const MISTRAL_REALTIME_SPEECH_CONTENT = /[\p{L}\p{N}]/u;
|
|
16
|
-
const MISTRAL_REALTIME_MAX_PARTIAL_TRANSCRIPT_BYTES =
|
|
16
|
+
const MISTRAL_REALTIME_MAX_PARTIAL_TRANSCRIPT_BYTES = 262144;
|
|
17
17
|
const MISTRAL_REALTIME_PARTIAL_TRANSCRIPT_OVERFLOW_MESSAGE = "Mistral realtime transcription exceeded the 256 KiB in-progress transcript limit";
|
|
18
18
|
function readNestedMistralConfig(rawConfig) {
|
|
19
19
|
const raw = asOptionalRecord(rawConfig);
|
|
20
|
-
|
|
20
|
+
const providers = asOptionalRecord(raw?.providers);
|
|
21
|
+
return asOptionalRecord(providers?.mistral ?? raw?.mistral ?? raw) ?? {};
|
|
21
22
|
}
|
|
22
23
|
function normalizeMistralEncoding(value) {
|
|
23
24
|
const normalized = normalizeOptionalString(value)?.toLowerCase();
|
|
@@ -68,10 +69,11 @@ function normalizeProviderConfig(config) {
|
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
71
|
function normalizeMistralApiKey(value) {
|
|
71
|
-
|
|
72
|
+
const resolved = normalizeResolvedSecretInputString({
|
|
72
73
|
value,
|
|
73
74
|
path: "plugins.entries.voice-call.config.streaming.providers.mistral.apiKey"
|
|
74
|
-
})
|
|
75
|
+
});
|
|
76
|
+
return normalizeSecretInput(resolved) || void 0;
|
|
75
77
|
}
|
|
76
78
|
function readErrorDetail(event) {
|
|
77
79
|
const message = event.error?.message;
|
|
@@ -160,7 +162,6 @@ function createMistralRealtimeTranscriptionSession(config) {
|
|
|
160
162
|
return;
|
|
161
163
|
}
|
|
162
164
|
case "error": failTerminal(new Error(readErrorDetail(event)), transport);
|
|
163
|
-
default:
|
|
164
165
|
}
|
|
165
166
|
};
|
|
166
167
|
return createRealtimeTranscriptionWebSocketSession({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/mistral-provider",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.2",
|
|
4
4
|
"description": "OpenClaw Mistral 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.8.
|
|
21
|
+
"pluginApi": ">=2026.8.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.8.
|
|
24
|
+
"openclawVersion": "2026.8.2",
|
|
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.8.
|
|
41
|
+
"openclaw": ">=2026.8.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|