@openclaw/mistral-provider 2026.8.1-beta.2 → 2026.8.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/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { buildMistralProvider } from "./provider-catalog.js";
1
+ import { t as buildMistralProvider } from "./provider-catalog-CTPBG3Dh.js";
2
2
  import { MISTRAL_BASE_URL, MISTRAL_DEFAULT_MODEL_ID, MISTRAL_DEFAULT_MODEL_REF, buildMistralModelDefinition } from "./model-definitions.js";
3
3
  import { applyMistralConfig, applyMistralProviderConfig } from "./onboard.js";
4
4
  const MISTRAL_MODEL_TRANSPORT_PATCH = {
@@ -1,7 +1,7 @@
1
+ import { MISTRAL_BASE_URL } from "./model-definitions.js";
1
2
  import { createRemoteEmbeddingProvider, normalizeEmbeddingModelWithPrefixes, resolveRemoteEmbeddingClient } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";
2
3
  //#region extensions/mistral/embedding-provider.ts
3
4
  const DEFAULT_MISTRAL_EMBEDDING_MODEL = "mistral-embed";
4
- const DEFAULT_MISTRAL_BASE_URL = "https://api.mistral.ai/v1";
5
5
  function normalizeMistralModel(model) {
6
6
  return normalizeEmbeddingModelWithPrefixes({
7
7
  model,
@@ -10,7 +10,12 @@ function normalizeMistralModel(model) {
10
10
  });
11
11
  }
12
12
  async function createMistralEmbeddingProvider(options) {
13
- const client = await resolveMistralEmbeddingClient(options);
13
+ const client = await resolveRemoteEmbeddingClient({
14
+ provider: "mistral",
15
+ options,
16
+ defaultBaseUrl: MISTRAL_BASE_URL,
17
+ normalizeModel: normalizeMistralModel
18
+ });
14
19
  return {
15
20
  provider: createRemoteEmbeddingProvider({
16
21
  id: "mistral",
@@ -20,13 +25,5 @@ async function createMistralEmbeddingProvider(options) {
20
25
  client
21
26
  };
22
27
  }
23
- async function resolveMistralEmbeddingClient(options) {
24
- return await resolveRemoteEmbeddingClient({
25
- provider: "mistral",
26
- options,
27
- defaultBaseUrl: DEFAULT_MISTRAL_BASE_URL,
28
- normalizeModel: normalizeMistralModel
29
- });
30
- }
31
28
  //#endregion
32
29
  export { DEFAULT_MISTRAL_EMBEDDING_MODEL, createMistralEmbeddingProvider };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as openclaw_plugin_default } from "./openclaw.plugin-CxIFdez7.js";
1
+ import { n as openclaw_plugin_default } from "./provider-catalog-CTPBG3Dh.js";
2
2
  import { applyMistralConfig } from "./onboard.js";
3
3
  import { applyMistralModelCompat } from "./api.js";
4
4
  import { mistralMediaUnderstandingProvider } from "./media-understanding-provider.js";
@@ -35,7 +35,7 @@ var mistral_default = defineSingleProviderPluginEntry({
35
35
  buildReplayPolicy: () => buildMistralReplayPolicy()
36
36
  },
37
37
  register(api) {
38
- api.registerMemoryEmbeddingProvider(mistralMemoryEmbeddingProviderAdapter);
38
+ api.registerEmbeddingProvider(mistralMemoryEmbeddingProviderAdapter);
39
39
  api.registerMediaUnderstandingProvider(mistralMediaUnderstandingProvider);
40
40
  api.registerRealtimeTranscriptionProvider(buildMistralRealtimeTranscriptionProvider());
41
41
  }
@@ -1,6 +1,13 @@
1
+ import { MISTRAL_BASE_URL } from "./model-definitions.js";
1
2
  import { DEFAULT_MISTRAL_EMBEDDING_MODEL, createMistralEmbeddingProvider } from "./embedding-provider.js";
2
- import { isMissingEmbeddingApiKeyError } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";
3
+ import { embeddingProviderOwnsDestination, isMissingEmbeddingApiKeyError, sanitizeEmbeddingCacheHeaders } from "openclaw/plugin-sdk/memory-core-host-engine-embeddings";
3
4
  //#region extensions/mistral/memory-embedding-adapter.ts
5
+ const EXCLUDED_EMBEDDING_HEADERS = [
6
+ "authorization",
7
+ "content-type",
8
+ "x-api-key",
9
+ "api-key"
10
+ ];
4
11
  const mistralMemoryEmbeddingProviderAdapter = {
5
12
  id: "mistral",
6
13
  defaultModel: DEFAULT_MISTRAL_EMBEDDING_MODEL,
@@ -15,13 +22,22 @@ const mistralMemoryEmbeddingProviderAdapter = {
15
22
  provider: "mistral",
16
23
  fallback: "none"
17
24
  });
25
+ const headers = sanitizeEmbeddingCacheHeaders(client.headers, EXCLUDED_EMBEDDING_HEADERS);
26
+ const usesDefaultIdentity = headers.length === 0 && embeddingProviderOwnsDestination({
27
+ baseUrl: client.baseUrl,
28
+ providerBaseUrl: MISTRAL_BASE_URL
29
+ });
18
30
  return {
19
31
  provider,
20
32
  runtime: {
21
33
  id: "mistral",
22
34
  cacheKeyData: {
23
35
  provider: "mistral",
24
- model: client.model
36
+ model: client.model,
37
+ ...usesDefaultIdentity ? {} : {
38
+ baseUrl: client.baseUrl,
39
+ headers
40
+ }
25
41
  }
26
42
  }
27
43
  };
@@ -1,20 +1,12 @@
1
- import { t as openclaw_plugin_default } from "./openclaw.plugin-CxIFdez7.js";
2
- import { buildManifestModelProviderConfig, readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
3
- //#region extensions/mistral/model-definitions.ts
4
- const MISTRAL_MANIFEST_CATALOG = openclaw_plugin_default.modelCatalog.providers.mistral;
5
- const MISTRAL_BASE_URL = MISTRAL_MANIFEST_CATALOG.baseUrl;
1
+ import { n as openclaw_plugin_default, t as buildMistralProvider } from "./provider-catalog-CTPBG3Dh.js";
2
+ import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
3
+ const MISTRAL_BASE_URL = openclaw_plugin_default.modelCatalog.providers.mistral.baseUrl;
6
4
  const MISTRAL_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, "mistral");
7
5
  const MISTRAL_DEFAULT_MODEL_ID = MISTRAL_DEFAULT_MODEL_REF.slice(8);
8
6
  function buildMistralModelDefinition() {
9
- const model = buildMistralCatalogModels().find((entry) => entry.id === MISTRAL_DEFAULT_MODEL_ID);
7
+ const model = buildMistralProvider().models.find((entry) => entry.id === MISTRAL_DEFAULT_MODEL_ID);
10
8
  if (!model) throw new Error(`Missing Mistral provider model ${MISTRAL_DEFAULT_MODEL_ID}`);
11
9
  return model;
12
10
  }
13
- function buildMistralCatalogModels() {
14
- return buildManifestModelProviderConfig({
15
- providerId: "mistral",
16
- catalog: MISTRAL_MANIFEST_CATALOG
17
- }).models;
18
- }
19
11
  //#endregion
20
12
  export { MISTRAL_BASE_URL, MISTRAL_DEFAULT_MODEL_ID, MISTRAL_DEFAULT_MODEL_REF, buildMistralModelDefinition };
@@ -1,3 +1,4 @@
1
+ import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
1
2
  //#region extensions/mistral/openclaw.plugin.json
2
3
  var openclaw_plugin_default = {
3
4
  id: "mistral",
@@ -137,7 +138,7 @@ var openclaw_plugin_default = {
137
138
  "cliDescription": "Mistral API key"
138
139
  }],
139
140
  contracts: {
140
- "memoryEmbeddingProviders": ["mistral"],
141
+ "embeddingProviders": ["mistral"],
141
142
  "mediaUnderstandingProviders": ["mistral"],
142
143
  "realtimeTranscriptionProviders": ["mistral"]
143
144
  },
@@ -153,4 +154,12 @@ var openclaw_plugin_default = {
153
154
  }
154
155
  };
155
156
  //#endregion
156
- export { openclaw_plugin_default as t };
157
+ //#region extensions/mistral/provider-catalog.ts
158
+ function buildMistralProvider() {
159
+ return buildManifestModelProviderConfig({
160
+ providerId: "mistral",
161
+ catalog: openclaw_plugin_default.modelCatalog.providers.mistral
162
+ });
163
+ }
164
+ //#endregion
165
+ export { openclaw_plugin_default as n, buildMistralProvider as t };
@@ -1,11 +1,2 @@
1
- import { t as openclaw_plugin_default } from "./openclaw.plugin-CxIFdez7.js";
2
- import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
3
- //#region extensions/mistral/provider-catalog.ts
4
- function buildMistralProvider() {
5
- return buildManifestModelProviderConfig({
6
- providerId: "mistral",
7
- catalog: openclaw_plugin_default.modelCatalog.providers.mistral
8
- });
9
- }
10
- //#endregion
1
+ import { t as buildMistralProvider } from "./provider-catalog-CTPBG3Dh.js";
11
2
  export { buildMistralProvider };
@@ -156,7 +156,7 @@
156
156
  }
157
157
  ],
158
158
  "contracts": {
159
- "memoryEmbeddingProviders": ["mistral"],
159
+ "embeddingProviders": ["mistral"],
160
160
  "mediaUnderstandingProviders": ["mistral"],
161
161
  "realtimeTranscriptionProviders": ["mistral"]
162
162
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/mistral-provider",
3
- "version": "2026.8.1-beta.2",
3
+ "version": "2026.8.1",
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.1-beta.2"
21
+ "pluginApi": ">=2026.8.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.8.1-beta.2",
24
+ "openclawVersion": "2026.8.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.8.1-beta.2"
41
+ "openclaw": ">=2026.8.1"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {