@openclaw/cohere-provider 2026.7.2-beta.3 → 2026.7.2-beta.4
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/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as isModernCohereModelId } from "./models-
|
|
1
|
+
import { o as isModernCohereModelId } from "./models-CvoHXglZ.js";
|
|
2
2
|
import { COHERE_DEFAULT_MODEL_REF, applyCohereConfig } from "./onboard.js";
|
|
3
|
-
import { buildCohereProvider } from "./provider-catalog.js";
|
|
3
|
+
import { COHERE_LIVE_MODEL_DISCOVERY, buildCohereProvider } from "./provider-catalog.js";
|
|
4
4
|
import { createCohereCompletionsWrapper } from "./stream.js";
|
|
5
5
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
6
6
|
//#region extensions/cohere/index.ts
|
|
@@ -28,7 +28,8 @@ var cohere_default = defineSingleProviderPluginEntry({
|
|
|
28
28
|
}],
|
|
29
29
|
catalog: {
|
|
30
30
|
buildProvider: buildCohereProvider,
|
|
31
|
-
buildStaticProvider: buildCohereProvider
|
|
31
|
+
buildStaticProvider: buildCohereProvider,
|
|
32
|
+
liveModelDiscovery: COHERE_LIVE_MODEL_DISCOVERY
|
|
32
33
|
},
|
|
33
34
|
wrapStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn),
|
|
34
35
|
wrapSimpleCompletionStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn),
|
|
@@ -146,7 +146,7 @@ const COHERE_MANIFEST_CATALOG = {
|
|
|
146
146
|
}
|
|
147
147
|
]
|
|
148
148
|
} },
|
|
149
|
-
"discovery": { "cohere": "
|
|
149
|
+
"discovery": { "cohere": "refreshable" }
|
|
150
150
|
}.providers.cohere;
|
|
151
151
|
const COHERE_BASE_URL = COHERE_MANIFEST_CATALOG.baseUrl;
|
|
152
152
|
const COHERE_MODEL_CATALOG = COHERE_MANIFEST_CATALOG.models;
|
package/dist/models.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildCohereModelDefinition, i as buildCohereCatalogModels, n as COHERE_COMMAND_A_PLUS_MODEL_ID, o as isModernCohereModelId, r as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-
|
|
1
|
+
import { a as buildCohereModelDefinition, i as buildCohereCatalogModels, n as COHERE_COMMAND_A_PLUS_MODEL_ID, o as isModernCohereModelId, r as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-CvoHXglZ.js";
|
|
2
2
|
export { COHERE_BASE_URL, COHERE_COMMAND_A_PLUS_MODEL_ID, COHERE_MODEL_CATALOG, buildCohereCatalogModels, buildCohereModelDefinition, isModernCohereModelId };
|
package/dist/onboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as buildCohereModelDefinition, n as COHERE_COMMAND_A_PLUS_MODEL_ID, r as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-
|
|
1
|
+
import { a as buildCohereModelDefinition, n as COHERE_COMMAND_A_PLUS_MODEL_ID, r as COHERE_MODEL_CATALOG, t as COHERE_BASE_URL } from "./models-CvoHXglZ.js";
|
|
2
2
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
const COHERE_DEFAULT_MODEL_REF = `cohere/${COHERE_COMMAND_A_PLUS_MODEL_ID}`;
|
|
4
4
|
const coherePresetAppliers = createModelCatalogPresetAppliers({
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import { i as buildCohereCatalogModels, t as COHERE_BASE_URL } from "./models-
|
|
1
|
+
import { i as buildCohereCatalogModels, t as COHERE_BASE_URL } from "./models-CvoHXglZ.js";
|
|
2
2
|
//#region extensions/cohere/provider-catalog.ts
|
|
3
|
+
const COHERE_LIVE_MODEL_DISCOVERY = {
|
|
4
|
+
endpointUrl: {
|
|
5
|
+
url: "https://api.cohere.com/v1/models?endpoint=chat&page_size=1000",
|
|
6
|
+
requireBaseUrl: COHERE_BASE_URL
|
|
7
|
+
},
|
|
8
|
+
readRows: (body) => {
|
|
9
|
+
if (!body || typeof body !== "object" || !Array.isArray(body.models)) throw new Error("Cohere model catalog response must contain models[]");
|
|
10
|
+
return body.models.flatMap((row) => {
|
|
11
|
+
if (!row || typeof row !== "object" || Array.isArray(row)) return [];
|
|
12
|
+
const record = row;
|
|
13
|
+
const modelId = typeof record.name === "string" ? record.name.trim() : "";
|
|
14
|
+
return modelId ? [{
|
|
15
|
+
...record,
|
|
16
|
+
id: modelId,
|
|
17
|
+
active: record.is_deprecated !== true
|
|
18
|
+
}] : [];
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
3
22
|
function buildCohereProvider() {
|
|
4
23
|
return {
|
|
5
24
|
baseUrl: COHERE_BASE_URL,
|
|
@@ -8,4 +27,4 @@ function buildCohereProvider() {
|
|
|
8
27
|
};
|
|
9
28
|
}
|
|
10
29
|
//#endregion
|
|
11
|
-
export { buildCohereProvider };
|
|
30
|
+
export { COHERE_LIVE_MODEL_DISCOVERY, buildCohereProvider };
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/cohere-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/cohere-provider",
|
|
9
|
-
"version": "2026.7.2-beta.
|
|
9
|
+
"version": "2026.7.2-beta.4"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/cohere-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"description": "OpenClaw Cohere provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.6.8"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.4"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.4",
|
|
25
25
|
"bundledDist": true
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.7.2-beta.
|
|
42
|
+
"openclaw": ">=2026.7.2-beta.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"openclaw": {
|