@openclaw/cohere-provider 2026.9.5 → 2026.9.7
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/assets/icon.png +0 -0
- package/dist/provider-catalog.js +7 -6
- package/package.json +4 -4
package/assets/icon.png
CHANGED
|
Binary file
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as COHERE_BASE_URL } from "./.setup/models-DxsOE4Aq.mjs";
|
|
2
|
+
import { asOptionalObjectRecord, asOptionalRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
3
|
//#region extensions/cohere/provider-catalog.ts
|
|
3
4
|
const COHERE_LIVE_MODEL_DISCOVERY = {
|
|
4
5
|
endpointUrl: {
|
|
@@ -6,15 +7,15 @@ const COHERE_LIVE_MODEL_DISCOVERY = {
|
|
|
6
7
|
requireBaseUrl: COHERE_BASE_URL
|
|
7
8
|
},
|
|
8
9
|
readRows: (body) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const record = row;
|
|
13
|
-
const modelId =
|
|
10
|
+
const models = asOptionalObjectRecord(body)?.models;
|
|
11
|
+
if (!Array.isArray(models)) throw new Error("Cohere model catalog response must contain models[]");
|
|
12
|
+
return models.flatMap((row) => {
|
|
13
|
+
const record = asOptionalRecord(row);
|
|
14
|
+
const modelId = normalizeOptionalString(record?.name);
|
|
14
15
|
return modelId ? [{
|
|
15
16
|
...record,
|
|
16
17
|
id: modelId,
|
|
17
|
-
active: record
|
|
18
|
+
active: record?.is_deprecated !== true
|
|
18
19
|
}] : [];
|
|
19
20
|
});
|
|
20
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/cohere-provider",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.7",
|
|
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.9.
|
|
21
|
+
"pluginApi": ">=2026.9.7"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.9.
|
|
24
|
+
"openclawVersion": "2026.9.7",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.9.
|
|
43
|
+
"openclaw": ">=2026.9.7"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|