@openclaw/cohere-provider 2026.7.2-beta.3 → 2026.7.2-beta.5
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 +6 -22
- package/dist/models-C55DsAXK.js +207 -0
- package/dist/models.js +2 -2
- package/dist/onboard.js +6 -4
- package/dist/provider-catalog.js +21 -9
- package/openclaw.plugin.json +8 -1
- package/package.json +4 -5
- package/dist/models-C5lqoGJq.js +0 -178
- package/npm-shrinkwrap.json +0 -12
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as openclaw_plugin_default, r as isModernCohereModelId } from "./models-C55DsAXK.js";
|
|
2
|
+
import { applyCohereConfig } from "./onboard.js";
|
|
3
|
+
import { COHERE_LIVE_MODEL_DISCOVERY } 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
|
|
@@ -8,28 +8,12 @@ var cohere_default = defineSingleProviderPluginEntry({
|
|
|
8
8
|
id: "cohere",
|
|
9
9
|
name: "Cohere Provider",
|
|
10
10
|
description: "Cohere provider plugin",
|
|
11
|
+
manifest: openclaw_plugin_default,
|
|
11
12
|
provider: {
|
|
12
13
|
label: "Cohere",
|
|
13
14
|
docsPath: "/providers/cohere",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
label: "Cohere API key",
|
|
17
|
-
hint: "OpenAI-compatible inference",
|
|
18
|
-
optionKey: "cohereApiKey",
|
|
19
|
-
flagName: "--cohere-api-key",
|
|
20
|
-
envVar: "COHERE_API_KEY",
|
|
21
|
-
promptMessage: "Enter Cohere API key",
|
|
22
|
-
defaultModel: COHERE_DEFAULT_MODEL_REF,
|
|
23
|
-
applyConfig: (cfg) => applyCohereConfig(cfg),
|
|
24
|
-
wizard: {
|
|
25
|
-
groupLabel: "Cohere",
|
|
26
|
-
groupHint: "OpenAI-compatible inference"
|
|
27
|
-
}
|
|
28
|
-
}],
|
|
29
|
-
catalog: {
|
|
30
|
-
buildProvider: buildCohereProvider,
|
|
31
|
-
buildStaticProvider: buildCohereProvider
|
|
32
|
-
},
|
|
15
|
+
manifestAuth: { applyConfig: applyCohereConfig },
|
|
16
|
+
catalog: { liveModelDiscovery: COHERE_LIVE_MODEL_DISCOVERY },
|
|
33
17
|
wrapStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn),
|
|
34
18
|
wrapSimpleCompletionStreamFn: (ctx) => createCohereCompletionsWrapper(ctx.streamFn),
|
|
35
19
|
isModernModelRef: ({ modelId }) => isModernCohereModelId(modelId)
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { buildManifestModelDefinition } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
|
+
//#region extensions/cohere/openclaw.plugin.json
|
|
3
|
+
var openclaw_plugin_default = {
|
|
4
|
+
id: "cohere",
|
|
5
|
+
name: "Cohere",
|
|
6
|
+
description: "OpenClaw Cohere provider plugin.",
|
|
7
|
+
activation: { "onStartup": false },
|
|
8
|
+
enabledByDefault: true,
|
|
9
|
+
providers: ["cohere"],
|
|
10
|
+
modelCatalog: {
|
|
11
|
+
"providers": { "cohere": {
|
|
12
|
+
"baseUrl": "https://api.cohere.ai/compatibility/v1",
|
|
13
|
+
"api": "openai-completions",
|
|
14
|
+
"defaultModel": "command-a-plus-05-2026",
|
|
15
|
+
"models": [
|
|
16
|
+
{
|
|
17
|
+
"id": "command-a-plus-05-2026",
|
|
18
|
+
"name": "Command A+",
|
|
19
|
+
"reasoning": true,
|
|
20
|
+
"input": ["text", "image"],
|
|
21
|
+
"contextWindow": 128e3,
|
|
22
|
+
"maxTokens": 64e3,
|
|
23
|
+
"cost": {
|
|
24
|
+
"input": 0,
|
|
25
|
+
"output": 0,
|
|
26
|
+
"cacheRead": 0,
|
|
27
|
+
"cacheWrite": 0
|
|
28
|
+
},
|
|
29
|
+
"compat": {
|
|
30
|
+
"supportsStore": false,
|
|
31
|
+
"supportsUsageInStreaming": false,
|
|
32
|
+
"supportsReasoningEffort": true,
|
|
33
|
+
"supportedReasoningEfforts": ["none", "high"],
|
|
34
|
+
"reasoningEffortMap": {
|
|
35
|
+
"off": "none",
|
|
36
|
+
"none": "none",
|
|
37
|
+
"minimal": "high",
|
|
38
|
+
"low": "high",
|
|
39
|
+
"medium": "high",
|
|
40
|
+
"high": "high",
|
|
41
|
+
"xhigh": "high",
|
|
42
|
+
"adaptive": "high",
|
|
43
|
+
"max": "high"
|
|
44
|
+
},
|
|
45
|
+
"maxTokensField": "max_tokens"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "command-a-03-2025",
|
|
50
|
+
"name": "Command A",
|
|
51
|
+
"status": "deprecated",
|
|
52
|
+
"replacedBy": "command-a-plus-05-2026",
|
|
53
|
+
"input": ["text"],
|
|
54
|
+
"contextWindow": 256e3,
|
|
55
|
+
"maxTokens": 8e3,
|
|
56
|
+
"cost": {
|
|
57
|
+
"input": 2.5,
|
|
58
|
+
"output": 10,
|
|
59
|
+
"cacheRead": 0,
|
|
60
|
+
"cacheWrite": 0
|
|
61
|
+
},
|
|
62
|
+
"compat": {
|
|
63
|
+
"supportsStore": false,
|
|
64
|
+
"supportsUsageInStreaming": false,
|
|
65
|
+
"maxTokensField": "max_tokens"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "command-a-reasoning-08-2025",
|
|
70
|
+
"name": "Command A Reasoning",
|
|
71
|
+
"status": "deprecated",
|
|
72
|
+
"replacedBy": "command-a-plus-05-2026",
|
|
73
|
+
"reasoning": true,
|
|
74
|
+
"input": ["text"],
|
|
75
|
+
"contextWindow": 256e3,
|
|
76
|
+
"maxTokens": 32e3,
|
|
77
|
+
"cost": {
|
|
78
|
+
"input": 0,
|
|
79
|
+
"output": 0,
|
|
80
|
+
"cacheRead": 0,
|
|
81
|
+
"cacheWrite": 0
|
|
82
|
+
},
|
|
83
|
+
"compat": {
|
|
84
|
+
"supportsStore": false,
|
|
85
|
+
"supportsUsageInStreaming": false,
|
|
86
|
+
"supportsReasoningEffort": true,
|
|
87
|
+
"supportedReasoningEfforts": ["none", "high"],
|
|
88
|
+
"reasoningEffortMap": {
|
|
89
|
+
"off": "none",
|
|
90
|
+
"none": "none",
|
|
91
|
+
"minimal": "high",
|
|
92
|
+
"low": "high",
|
|
93
|
+
"medium": "high",
|
|
94
|
+
"high": "high",
|
|
95
|
+
"xhigh": "high",
|
|
96
|
+
"adaptive": "high",
|
|
97
|
+
"max": "high"
|
|
98
|
+
},
|
|
99
|
+
"maxTokensField": "max_tokens"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "command-a-vision-07-2025",
|
|
104
|
+
"name": "Command A Vision",
|
|
105
|
+
"status": "deprecated",
|
|
106
|
+
"replacedBy": "command-a-plus-05-2026",
|
|
107
|
+
"reasoning": false,
|
|
108
|
+
"input": ["text", "image"],
|
|
109
|
+
"contextWindow": 128e3,
|
|
110
|
+
"maxTokens": 8e3,
|
|
111
|
+
"cost": {
|
|
112
|
+
"input": 0,
|
|
113
|
+
"output": 0,
|
|
114
|
+
"cacheRead": 0,
|
|
115
|
+
"cacheWrite": 0
|
|
116
|
+
},
|
|
117
|
+
"compat": {
|
|
118
|
+
"supportsStore": false,
|
|
119
|
+
"supportsUsageInStreaming": false,
|
|
120
|
+
"supportsTools": false,
|
|
121
|
+
"maxTokensField": "max_tokens"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "north-mini-code-1-0",
|
|
126
|
+
"name": "North Mini Code 1.0",
|
|
127
|
+
"reasoning": true,
|
|
128
|
+
"input": ["text", "image"],
|
|
129
|
+
"contextWindow": 256e3,
|
|
130
|
+
"maxTokens": 64e3,
|
|
131
|
+
"cost": {
|
|
132
|
+
"input": 0,
|
|
133
|
+
"output": 0,
|
|
134
|
+
"cacheRead": 0,
|
|
135
|
+
"cacheWrite": 0
|
|
136
|
+
},
|
|
137
|
+
"compat": {
|
|
138
|
+
"supportsStore": false,
|
|
139
|
+
"supportsUsageInStreaming": false,
|
|
140
|
+
"supportsReasoningEffort": true,
|
|
141
|
+
"supportedReasoningEfforts": ["none", "high"],
|
|
142
|
+
"reasoningEffortMap": {
|
|
143
|
+
"off": "none",
|
|
144
|
+
"none": "none",
|
|
145
|
+
"minimal": "high",
|
|
146
|
+
"low": "high",
|
|
147
|
+
"medium": "high",
|
|
148
|
+
"high": "high",
|
|
149
|
+
"xhigh": "high",
|
|
150
|
+
"adaptive": "high",
|
|
151
|
+
"max": "high"
|
|
152
|
+
},
|
|
153
|
+
"maxTokensField": "max_tokens"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
} },
|
|
158
|
+
"discovery": { "cohere": "refreshable" }
|
|
159
|
+
},
|
|
160
|
+
setup: { "providers": [{
|
|
161
|
+
"id": "cohere",
|
|
162
|
+
"envVars": ["COHERE_API_KEY"]
|
|
163
|
+
}] },
|
|
164
|
+
providerAuthChoices: [{
|
|
165
|
+
"provider": "cohere",
|
|
166
|
+
"method": "api-key",
|
|
167
|
+
"choiceId": "cohere-api-key",
|
|
168
|
+
"appGuidedSecret": true,
|
|
169
|
+
"choiceLabel": "Cohere API key",
|
|
170
|
+
"groupId": "cohere",
|
|
171
|
+
"groupLabel": "Cohere",
|
|
172
|
+
"groupHint": "OpenAI-compatible inference",
|
|
173
|
+
"optionKey": "cohereApiKey",
|
|
174
|
+
"cliFlag": "--cohere-api-key",
|
|
175
|
+
"cliOption": "--cohere-api-key <key>",
|
|
176
|
+
"cliDescription": "Cohere API key"
|
|
177
|
+
}],
|
|
178
|
+
configSchema: {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"properties": {}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region extensions/cohere/models.ts
|
|
186
|
+
/**
|
|
187
|
+
* Cohere model catalog helpers derived from the plugin manifest.
|
|
188
|
+
*/
|
|
189
|
+
const COHERE_MANIFEST_CATALOG = openclaw_plugin_default.modelCatalog.providers.cohere;
|
|
190
|
+
const COHERE_BASE_URL = COHERE_MANIFEST_CATALOG.baseUrl;
|
|
191
|
+
const COHERE_MODEL_CATALOG = COHERE_MANIFEST_CATALOG.models;
|
|
192
|
+
const COHERE_MODERN_MODEL_IDS = /* @__PURE__ */ new Set([
|
|
193
|
+
"command-a-plus-05-2026",
|
|
194
|
+
"command-a-reasoning-08-2025",
|
|
195
|
+
"north-mini-code-1-0"
|
|
196
|
+
]);
|
|
197
|
+
function isModernCohereModelId(modelId) {
|
|
198
|
+
return COHERE_MODERN_MODEL_IDS.has(modelId.trim().toLowerCase());
|
|
199
|
+
}
|
|
200
|
+
function buildCohereCatalogModels() {
|
|
201
|
+
return COHERE_MODEL_CATALOG.map(buildManifestModelDefinition({
|
|
202
|
+
providerId: "cohere",
|
|
203
|
+
catalog: COHERE_MANIFEST_CATALOG
|
|
204
|
+
}));
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
export { openclaw_plugin_default as i, buildCohereCatalogModels as n, isModernCohereModelId as r, COHERE_BASE_URL as t };
|
package/dist/models.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { COHERE_BASE_URL,
|
|
1
|
+
import { n as buildCohereCatalogModels, r as isModernCohereModelId, t as COHERE_BASE_URL } from "./models-C55DsAXK.js";
|
|
2
|
+
export { COHERE_BASE_URL, buildCohereCatalogModels, isModernCohereModelId };
|
package/dist/onboard.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as openclaw_plugin_default, n as buildCohereCatalogModels, t as COHERE_BASE_URL } from "./models-C55DsAXK.js";
|
|
2
|
+
import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
3
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
|
-
|
|
4
|
+
//#region extensions/cohere/onboard.ts
|
|
5
|
+
const COHERE_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, "cohere");
|
|
4
6
|
const coherePresetAppliers = createModelCatalogPresetAppliers({
|
|
5
7
|
primaryModelRef: COHERE_DEFAULT_MODEL_REF,
|
|
6
8
|
resolveParams: (_cfg) => ({
|
|
7
9
|
providerId: "cohere",
|
|
8
10
|
api: "openai-completions",
|
|
9
11
|
baseUrl: COHERE_BASE_URL,
|
|
10
|
-
catalogModels:
|
|
12
|
+
catalogModels: buildCohereCatalogModels(),
|
|
11
13
|
aliases: [{
|
|
12
14
|
modelRef: COHERE_DEFAULT_MODEL_REF,
|
|
13
15
|
alias: "Cohere Command A+"
|
|
@@ -18,4 +20,4 @@ function applyCohereConfig(cfg) {
|
|
|
18
20
|
return coherePresetAppliers.applyConfig(cfg);
|
|
19
21
|
}
|
|
20
22
|
//#endregion
|
|
21
|
-
export {
|
|
23
|
+
export { applyCohereConfig };
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as COHERE_BASE_URL } from "./models-C55DsAXK.js";
|
|
2
2
|
//#region extensions/cohere/provider-catalog.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
};
|
|
10
22
|
//#endregion
|
|
11
|
-
export {
|
|
23
|
+
export { COHERE_LIVE_MODEL_DISCOVERY };
|
package/openclaw.plugin.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"cohere": {
|
|
13
13
|
"baseUrl": "https://api.cohere.ai/compatibility/v1",
|
|
14
14
|
"api": "openai-completions",
|
|
15
|
+
"defaultModel": "command-a-plus-05-2026",
|
|
15
16
|
"models": [
|
|
16
17
|
{
|
|
17
18
|
"id": "command-a-plus-05-2026",
|
|
@@ -48,6 +49,8 @@
|
|
|
48
49
|
{
|
|
49
50
|
"id": "command-a-03-2025",
|
|
50
51
|
"name": "Command A",
|
|
52
|
+
"status": "deprecated",
|
|
53
|
+
"replacedBy": "command-a-plus-05-2026",
|
|
51
54
|
"input": ["text"],
|
|
52
55
|
"contextWindow": 256000,
|
|
53
56
|
"maxTokens": 8000,
|
|
@@ -66,6 +69,8 @@
|
|
|
66
69
|
{
|
|
67
70
|
"id": "command-a-reasoning-08-2025",
|
|
68
71
|
"name": "Command A Reasoning",
|
|
72
|
+
"status": "deprecated",
|
|
73
|
+
"replacedBy": "command-a-plus-05-2026",
|
|
69
74
|
"reasoning": true,
|
|
70
75
|
"input": ["text"],
|
|
71
76
|
"contextWindow": 256000,
|
|
@@ -98,6 +103,8 @@
|
|
|
98
103
|
{
|
|
99
104
|
"id": "command-a-vision-07-2025",
|
|
100
105
|
"name": "Command A Vision",
|
|
106
|
+
"status": "deprecated",
|
|
107
|
+
"replacedBy": "command-a-plus-05-2026",
|
|
101
108
|
"reasoning": false,
|
|
102
109
|
"input": ["text", "image"],
|
|
103
110
|
"contextWindow": 128000,
|
|
@@ -151,7 +158,7 @@
|
|
|
151
158
|
}
|
|
152
159
|
},
|
|
153
160
|
"discovery": {
|
|
154
|
-
"cohere": "
|
|
161
|
+
"cohere": "refreshable"
|
|
155
162
|
}
|
|
156
163
|
},
|
|
157
164
|
"setup": {
|
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.5",
|
|
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.5"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.5",
|
|
25
25
|
"bundledDist": true
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -35,11 +35,10 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"dist/**",
|
|
37
37
|
"openclaw.plugin.json",
|
|
38
|
-
"npm-shrinkwrap.json",
|
|
39
38
|
"README.md"
|
|
40
39
|
],
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"openclaw": ">=2026.7.2-beta.
|
|
41
|
+
"openclaw": ">=2026.7.2-beta.5"
|
|
43
42
|
},
|
|
44
43
|
"peerDependenciesMeta": {
|
|
45
44
|
"openclaw": {
|
package/dist/models-C5lqoGJq.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
2
|
-
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region extensions/cohere/models.ts
|
|
5
|
-
/**
|
|
6
|
-
* Cohere model catalog helpers derived from the plugin manifest.
|
|
7
|
-
*/
|
|
8
|
-
const COHERE_MANIFEST_CATALOG = {
|
|
9
|
-
"providers": { "cohere": {
|
|
10
|
-
"baseUrl": "https://api.cohere.ai/compatibility/v1",
|
|
11
|
-
"api": "openai-completions",
|
|
12
|
-
"models": [
|
|
13
|
-
{
|
|
14
|
-
"id": "command-a-plus-05-2026",
|
|
15
|
-
"name": "Command A+",
|
|
16
|
-
"reasoning": true,
|
|
17
|
-
"input": ["text", "image"],
|
|
18
|
-
"contextWindow": 128e3,
|
|
19
|
-
"maxTokens": 64e3,
|
|
20
|
-
"cost": {
|
|
21
|
-
"input": 0,
|
|
22
|
-
"output": 0,
|
|
23
|
-
"cacheRead": 0,
|
|
24
|
-
"cacheWrite": 0
|
|
25
|
-
},
|
|
26
|
-
"compat": {
|
|
27
|
-
"supportsStore": false,
|
|
28
|
-
"supportsUsageInStreaming": false,
|
|
29
|
-
"supportsReasoningEffort": true,
|
|
30
|
-
"supportedReasoningEfforts": ["none", "high"],
|
|
31
|
-
"reasoningEffortMap": {
|
|
32
|
-
"off": "none",
|
|
33
|
-
"none": "none",
|
|
34
|
-
"minimal": "high",
|
|
35
|
-
"low": "high",
|
|
36
|
-
"medium": "high",
|
|
37
|
-
"high": "high",
|
|
38
|
-
"xhigh": "high",
|
|
39
|
-
"adaptive": "high",
|
|
40
|
-
"max": "high"
|
|
41
|
-
},
|
|
42
|
-
"maxTokensField": "max_tokens"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"id": "command-a-03-2025",
|
|
47
|
-
"name": "Command A",
|
|
48
|
-
"input": ["text"],
|
|
49
|
-
"contextWindow": 256e3,
|
|
50
|
-
"maxTokens": 8e3,
|
|
51
|
-
"cost": {
|
|
52
|
-
"input": 2.5,
|
|
53
|
-
"output": 10,
|
|
54
|
-
"cacheRead": 0,
|
|
55
|
-
"cacheWrite": 0
|
|
56
|
-
},
|
|
57
|
-
"compat": {
|
|
58
|
-
"supportsStore": false,
|
|
59
|
-
"supportsUsageInStreaming": false,
|
|
60
|
-
"maxTokensField": "max_tokens"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"id": "command-a-reasoning-08-2025",
|
|
65
|
-
"name": "Command A Reasoning",
|
|
66
|
-
"reasoning": true,
|
|
67
|
-
"input": ["text"],
|
|
68
|
-
"contextWindow": 256e3,
|
|
69
|
-
"maxTokens": 32e3,
|
|
70
|
-
"cost": {
|
|
71
|
-
"input": 0,
|
|
72
|
-
"output": 0,
|
|
73
|
-
"cacheRead": 0,
|
|
74
|
-
"cacheWrite": 0
|
|
75
|
-
},
|
|
76
|
-
"compat": {
|
|
77
|
-
"supportsStore": false,
|
|
78
|
-
"supportsUsageInStreaming": false,
|
|
79
|
-
"supportsReasoningEffort": true,
|
|
80
|
-
"supportedReasoningEfforts": ["none", "high"],
|
|
81
|
-
"reasoningEffortMap": {
|
|
82
|
-
"off": "none",
|
|
83
|
-
"none": "none",
|
|
84
|
-
"minimal": "high",
|
|
85
|
-
"low": "high",
|
|
86
|
-
"medium": "high",
|
|
87
|
-
"high": "high",
|
|
88
|
-
"xhigh": "high",
|
|
89
|
-
"adaptive": "high",
|
|
90
|
-
"max": "high"
|
|
91
|
-
},
|
|
92
|
-
"maxTokensField": "max_tokens"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"id": "command-a-vision-07-2025",
|
|
97
|
-
"name": "Command A Vision",
|
|
98
|
-
"reasoning": false,
|
|
99
|
-
"input": ["text", "image"],
|
|
100
|
-
"contextWindow": 128e3,
|
|
101
|
-
"maxTokens": 8e3,
|
|
102
|
-
"cost": {
|
|
103
|
-
"input": 0,
|
|
104
|
-
"output": 0,
|
|
105
|
-
"cacheRead": 0,
|
|
106
|
-
"cacheWrite": 0
|
|
107
|
-
},
|
|
108
|
-
"compat": {
|
|
109
|
-
"supportsStore": false,
|
|
110
|
-
"supportsUsageInStreaming": false,
|
|
111
|
-
"supportsTools": false,
|
|
112
|
-
"maxTokensField": "max_tokens"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"id": "north-mini-code-1-0",
|
|
117
|
-
"name": "North Mini Code 1.0",
|
|
118
|
-
"reasoning": true,
|
|
119
|
-
"input": ["text", "image"],
|
|
120
|
-
"contextWindow": 256e3,
|
|
121
|
-
"maxTokens": 64e3,
|
|
122
|
-
"cost": {
|
|
123
|
-
"input": 0,
|
|
124
|
-
"output": 0,
|
|
125
|
-
"cacheRead": 0,
|
|
126
|
-
"cacheWrite": 0
|
|
127
|
-
},
|
|
128
|
-
"compat": {
|
|
129
|
-
"supportsStore": false,
|
|
130
|
-
"supportsUsageInStreaming": false,
|
|
131
|
-
"supportsReasoningEffort": true,
|
|
132
|
-
"supportedReasoningEfforts": ["none", "high"],
|
|
133
|
-
"reasoningEffortMap": {
|
|
134
|
-
"off": "none",
|
|
135
|
-
"none": "none",
|
|
136
|
-
"minimal": "high",
|
|
137
|
-
"low": "high",
|
|
138
|
-
"medium": "high",
|
|
139
|
-
"high": "high",
|
|
140
|
-
"xhigh": "high",
|
|
141
|
-
"adaptive": "high",
|
|
142
|
-
"max": "high"
|
|
143
|
-
},
|
|
144
|
-
"maxTokensField": "max_tokens"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
} },
|
|
149
|
-
"discovery": { "cohere": "static" }
|
|
150
|
-
}.providers.cohere;
|
|
151
|
-
const COHERE_BASE_URL = COHERE_MANIFEST_CATALOG.baseUrl;
|
|
152
|
-
const COHERE_MODEL_CATALOG = COHERE_MANIFEST_CATALOG.models;
|
|
153
|
-
const COHERE_COMMAND_A_PLUS_MODEL_ID = "command-a-plus-05-2026";
|
|
154
|
-
const COHERE_MODERN_MODEL_IDS = /* @__PURE__ */ new Set([
|
|
155
|
-
COHERE_COMMAND_A_PLUS_MODEL_ID,
|
|
156
|
-
"command-a-reasoning-08-2025",
|
|
157
|
-
"north-mini-code-1-0"
|
|
158
|
-
]);
|
|
159
|
-
function isModernCohereModelId(modelId) {
|
|
160
|
-
return COHERE_MODERN_MODEL_IDS.has(modelId.trim().toLowerCase());
|
|
161
|
-
}
|
|
162
|
-
function buildCohereCatalogModels() {
|
|
163
|
-
return buildManifestModelProviderConfig({
|
|
164
|
-
providerId: "cohere",
|
|
165
|
-
catalog: COHERE_MANIFEST_CATALOG
|
|
166
|
-
}).models;
|
|
167
|
-
}
|
|
168
|
-
function buildCohereModelDefinition(model) {
|
|
169
|
-
return expectDefined(buildManifestModelProviderConfig({
|
|
170
|
-
providerId: "cohere",
|
|
171
|
-
catalog: {
|
|
172
|
-
...COHERE_MANIFEST_CATALOG,
|
|
173
|
-
models: [model]
|
|
174
|
-
}
|
|
175
|
-
}).models.at(0), "normalized Cohere manifest model");
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
export { buildCohereModelDefinition as a, buildCohereCatalogModels as i, COHERE_COMMAND_A_PLUS_MODEL_ID as n, isModernCohereModelId as o, COHERE_MODEL_CATALOG as r, COHERE_BASE_URL as t };
|
package/npm-shrinkwrap.json
DELETED