@openclaw/gmi-provider 2026.7.2-beta.4 → 2026.7.2-beta.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/README.md CHANGED
@@ -11,4 +11,4 @@ openclaw gateway restart
11
11
  ```
12
12
 
13
13
  Configure a GMI Cloud API key, then select models with refs such as
14
- `gmi/google/gemini-3.1-flash-lite`.
14
+ `gmi/openai/gpt-5.6-sol`.
package/dist/index.js CHANGED
@@ -1,35 +1,209 @@
1
- import { n as GMI_DEFAULT_MODEL_REF } from "./models-B9neh8ZK.js";
2
- import { buildGmiProvider } from "./provider-catalog.js";
3
1
  import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
4
2
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
5
3
  import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
6
4
  import { buildProviderToolCompatFamilyHooks } from "openclaw/plugin-sdk/provider-tools";
5
+ //#region extensions/gmi/openclaw.plugin.json
6
+ var openclaw_plugin_default = {
7
+ id: "gmi",
8
+ name: "GMI Cloud",
9
+ description: "OpenClaw GMI Cloud provider plugin.",
10
+ activation: { "onStartup": false },
11
+ enabledByDefault: true,
12
+ providers: [
13
+ "gmi",
14
+ "gmi-cloud",
15
+ "gmicloud"
16
+ ],
17
+ providerAuthAliases: {
18
+ "gmi-cloud": "gmi",
19
+ "gmicloud": "gmi"
20
+ },
21
+ providerEndpoints: [{
22
+ "endpointClass": "gmi-native",
23
+ "hosts": ["api.gmi-serving.com"]
24
+ }],
25
+ providerRequest: { "providers": {
26
+ "gmi": { "family": "gmi" },
27
+ "gmi-cloud": { "family": "gmi" },
28
+ "gmicloud": { "family": "gmi" }
29
+ } },
30
+ setup: { "providers": [{
31
+ "id": "gmi",
32
+ "envVars": ["GMI_API_KEY"]
33
+ }] },
34
+ providerAuthChoices: [{
35
+ "provider": "gmi",
36
+ "method": "api-key",
37
+ "choiceId": "gmi-api-key",
38
+ "appGuidedSecret": true,
39
+ "choiceLabel": "GMI Cloud API key",
40
+ "choiceHint": "OpenAI-compatible GMI Cloud endpoint",
41
+ "groupId": "gmi",
42
+ "groupLabel": "GMI Cloud",
43
+ "groupHint": "OpenAI-compatible GMI Cloud endpoint",
44
+ "optionKey": "gmiApiKey",
45
+ "cliFlag": "--gmi-api-key",
46
+ "cliOption": "--gmi-api-key <key>",
47
+ "cliDescription": "GMI Cloud API key"
48
+ }],
49
+ configSchema: {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "properties": {}
53
+ },
54
+ modelCatalog: {
55
+ "aliases": {
56
+ "gmi-cloud": { "provider": "gmi" },
57
+ "gmicloud": { "provider": "gmi" }
58
+ },
59
+ "providers": { "gmi": {
60
+ "baseUrl": "https://api.gmi-serving.com/v1",
61
+ "api": "openai-completions",
62
+ "defaultModel": "openai/gpt-5.6-sol",
63
+ "models": [
64
+ {
65
+ "id": "zai-org/GLM-5.2-FP8",
66
+ "name": "GLM-5.2 FP8",
67
+ "reasoning": true,
68
+ "input": ["text"],
69
+ "contextWindow": 1048576,
70
+ "maxTokens": 128e3,
71
+ "cost": {
72
+ "input": .923,
73
+ "output": 2.903,
74
+ "cacheRead": .171,
75
+ "cacheWrite": 0
76
+ }
77
+ },
78
+ {
79
+ "id": "zai-org/GLM-5.1-FP8",
80
+ "name": "GLM-5.1 FP8",
81
+ "status": "deprecated",
82
+ "replacedBy": "zai-org/GLM-5.2-FP8",
83
+ "reasoning": true,
84
+ "input": ["text"],
85
+ "contextWindow": 202752,
86
+ "maxTokens": 65536,
87
+ "cost": {
88
+ "input": .979,
89
+ "output": 3.08,
90
+ "cacheRead": .182,
91
+ "cacheWrite": 0
92
+ }
93
+ },
94
+ {
95
+ "id": "deepseek-ai/DeepSeek-V4-Pro",
96
+ "name": "DeepSeek V4 Pro",
97
+ "reasoning": true,
98
+ "input": ["text"],
99
+ "contextWindow": 1048576,
100
+ "maxTokens": 384e3,
101
+ "cost": {
102
+ "input": .678,
103
+ "output": 1.357,
104
+ "cacheRead": .056,
105
+ "cacheWrite": 0
106
+ },
107
+ "compat": { "codeMode": "capable" }
108
+ },
109
+ {
110
+ "id": "deepseek-ai/DeepSeek-V3.2",
111
+ "name": "DeepSeek V3.2",
112
+ "status": "deprecated",
113
+ "replacedBy": "deepseek-ai/DeepSeek-V4-Pro",
114
+ "reasoning": false,
115
+ "input": ["text"],
116
+ "contextWindow": 163840,
117
+ "maxTokens": 65536,
118
+ "cost": {
119
+ "input": .29,
120
+ "output": .43,
121
+ "cacheRead": .03,
122
+ "cacheWrite": 0
123
+ }
124
+ },
125
+ {
126
+ "id": "google/gemini-3.5-flash-lite",
127
+ "name": "Gemini 3.5 Flash Lite",
128
+ "reasoning": true,
129
+ "input": ["text", "image"],
130
+ "contextWindow": 1048576,
131
+ "maxTokens": 65536,
132
+ "cost": {
133
+ "input": .3,
134
+ "output": 2.5,
135
+ "cacheRead": .03,
136
+ "cacheWrite": 0
137
+ }
138
+ },
139
+ {
140
+ "id": "anthropic/claude-sonnet-5",
141
+ "name": "Claude Sonnet 5",
142
+ "reasoning": true,
143
+ "input": ["text", "image"],
144
+ "contextWindow": 409600,
145
+ "maxTokens": 128e3,
146
+ "cost": {
147
+ "input": 2,
148
+ "output": 10,
149
+ "cacheRead": .2,
150
+ "cacheWrite": 0
151
+ },
152
+ "compat": { "codeMode": "capable" }
153
+ },
154
+ {
155
+ "id": "anthropic/claude-sonnet-4.6",
156
+ "name": "Claude Sonnet 4.6",
157
+ "status": "deprecated",
158
+ "replacedBy": "anthropic/claude-sonnet-5",
159
+ "reasoning": true,
160
+ "input": ["text", "image"],
161
+ "contextWindow": 409600,
162
+ "maxTokens": 64e3,
163
+ "cost": {
164
+ "input": 3,
165
+ "output": 15,
166
+ "cacheRead": .3,
167
+ "cacheWrite": 0
168
+ }
169
+ },
170
+ {
171
+ "id": "openai/gpt-5.6-sol",
172
+ "name": "GPT-5.6 Sol",
173
+ "reasoning": true,
174
+ "input": ["text", "image"],
175
+ "contextWindow": 105e4,
176
+ "maxTokens": 128e3,
177
+ "cost": {
178
+ "input": 5,
179
+ "output": 30,
180
+ "cacheRead": .5,
181
+ "cacheWrite": 6.25
182
+ },
183
+ "compat": { "codeMode": "capable" }
184
+ }
185
+ ]
186
+ } },
187
+ "discovery": { "gmi": "refreshable" }
188
+ }
189
+ };
190
+ //#endregion
7
191
  //#region extensions/gmi/index.ts
8
192
  const PROVIDER_ID = "gmi";
9
193
  var gmi_default = defineSingleProviderPluginEntry({
10
194
  id: PROVIDER_ID,
11
195
  name: "GMI Cloud Provider",
12
196
  description: "GMI Cloud provider plugin",
197
+ manifest: openclaw_plugin_default,
13
198
  provider: {
14
199
  label: "GMI Cloud",
15
200
  docsPath: "/providers/gmi",
16
201
  aliases: ["gmi-cloud", "gmicloud"],
17
- envVars: ["GMI_API_KEY"],
18
- auth: [{
19
- methodId: "api-key",
20
- label: "GMI Cloud API key",
21
- hint: "OpenAI-compatible GMI Cloud endpoint",
22
- optionKey: "gmiApiKey",
23
- flagName: "--gmi-api-key",
24
- envVar: "GMI_API_KEY",
25
- promptMessage: "Enter GMI Cloud API key",
26
- defaultModel: GMI_DEFAULT_MODEL_REF,
202
+ manifestAuth: {
27
203
  noteTitle: "GMI Cloud",
28
204
  noteMessage: "Manage API keys at https://www.gmicloud.ai/"
29
- }],
205
+ },
30
206
  catalog: {
31
- buildProvider: buildGmiProvider,
32
- buildStaticProvider: buildGmiProvider,
33
207
  allowExplicitBaseUrl: true,
34
208
  liveModelDiscovery: true
35
209
  },
@@ -73,89 +73,133 @@
73
73
  "gmi": {
74
74
  "baseUrl": "https://api.gmi-serving.com/v1",
75
75
  "api": "openai-completions",
76
+ "defaultModel": "openai/gpt-5.6-sol",
76
77
  "models": [
78
+ {
79
+ "id": "zai-org/GLM-5.2-FP8",
80
+ "name": "GLM-5.2 FP8",
81
+ "reasoning": true,
82
+ "input": ["text"],
83
+ "contextWindow": 1048576,
84
+ "maxTokens": 128000,
85
+ "cost": {
86
+ "input": 0.923,
87
+ "output": 2.903,
88
+ "cacheRead": 0.171,
89
+ "cacheWrite": 0
90
+ }
91
+ },
77
92
  {
78
93
  "id": "zai-org/GLM-5.1-FP8",
79
94
  "name": "GLM-5.1 FP8",
95
+ "status": "deprecated",
96
+ "replacedBy": "zai-org/GLM-5.2-FP8",
80
97
  "reasoning": true,
81
98
  "input": ["text"],
82
99
  "contextWindow": 202752,
83
100
  "maxTokens": 65536,
84
101
  "cost": {
85
- "input": 0,
86
- "output": 0,
87
- "cacheRead": 0,
102
+ "input": 0.979,
103
+ "output": 3.08,
104
+ "cacheRead": 0.182,
105
+ "cacheWrite": 0
106
+ }
107
+ },
108
+ {
109
+ "id": "deepseek-ai/DeepSeek-V4-Pro",
110
+ "name": "DeepSeek V4 Pro",
111
+ "reasoning": true,
112
+ "input": ["text"],
113
+ "contextWindow": 1048576,
114
+ "maxTokens": 384000,
115
+ "cost": {
116
+ "input": 0.678,
117
+ "output": 1.357,
118
+ "cacheRead": 0.056,
88
119
  "cacheWrite": 0
120
+ },
121
+ "compat": {
122
+ "codeMode": "capable"
89
123
  }
90
124
  },
91
125
  {
92
126
  "id": "deepseek-ai/DeepSeek-V3.2",
93
127
  "name": "DeepSeek V3.2",
128
+ "status": "deprecated",
129
+ "replacedBy": "deepseek-ai/DeepSeek-V4-Pro",
94
130
  "reasoning": false,
95
131
  "input": ["text"],
96
132
  "contextWindow": 163840,
97
133
  "maxTokens": 65536,
98
134
  "cost": {
99
- "input": 0,
100
- "output": 0,
101
- "cacheRead": 0,
135
+ "input": 0.29,
136
+ "output": 0.43,
137
+ "cacheRead": 0.03,
102
138
  "cacheWrite": 0
103
139
  }
104
140
  },
105
141
  {
106
- "id": "moonshotai/Kimi-K2.5",
107
- "name": "Kimi K2.5",
142
+ "id": "google/gemini-3.5-flash-lite",
143
+ "name": "Gemini 3.5 Flash Lite",
108
144
  "reasoning": true,
109
145
  "input": ["text", "image"],
110
- "contextWindow": 262144,
146
+ "contextWindow": 1048576,
111
147
  "maxTokens": 65536,
112
148
  "cost": {
113
- "input": 0,
114
- "output": 0,
115
- "cacheRead": 0,
149
+ "input": 0.3,
150
+ "output": 2.5,
151
+ "cacheRead": 0.03,
116
152
  "cacheWrite": 0
117
153
  }
118
154
  },
119
155
  {
120
- "id": "google/gemini-3.1-flash-lite",
121
- "name": "Gemini 3.1 Flash Lite",
122
- "reasoning": false,
156
+ "id": "anthropic/claude-sonnet-5",
157
+ "name": "Claude Sonnet 5",
158
+ "reasoning": true,
123
159
  "input": ["text", "image"],
124
- "contextWindow": 1048576,
125
- "maxTokens": 65536,
160
+ "contextWindow": 409600,
161
+ "maxTokens": 128000,
126
162
  "cost": {
127
- "input": 0,
128
- "output": 0,
129
- "cacheRead": 0,
163
+ "input": 2,
164
+ "output": 10,
165
+ "cacheRead": 0.2,
130
166
  "cacheWrite": 0
167
+ },
168
+ "compat": {
169
+ "codeMode": "capable"
131
170
  }
132
171
  },
133
172
  {
134
173
  "id": "anthropic/claude-sonnet-4.6",
135
174
  "name": "Claude Sonnet 4.6",
136
- "reasoning": false,
175
+ "status": "deprecated",
176
+ "replacedBy": "anthropic/claude-sonnet-5",
177
+ "reasoning": true,
137
178
  "input": ["text", "image"],
138
- "contextWindow": 200000,
179
+ "contextWindow": 409600,
139
180
  "maxTokens": 64000,
140
181
  "cost": {
141
- "input": 0,
142
- "output": 0,
143
- "cacheRead": 0,
182
+ "input": 3,
183
+ "output": 15,
184
+ "cacheRead": 0.3,
144
185
  "cacheWrite": 0
145
186
  }
146
187
  },
147
188
  {
148
- "id": "openai/gpt-5.4",
149
- "name": "GPT-5.4",
189
+ "id": "openai/gpt-5.6-sol",
190
+ "name": "GPT-5.6 Sol",
150
191
  "reasoning": true,
151
192
  "input": ["text", "image"],
152
- "contextWindow": 400000,
193
+ "contextWindow": 1050000,
153
194
  "maxTokens": 128000,
154
195
  "cost": {
155
- "input": 0,
156
- "output": 0,
157
- "cacheRead": 0,
158
- "cacheWrite": 0
196
+ "input": 5,
197
+ "output": 30,
198
+ "cacheRead": 0.5,
199
+ "cacheWrite": 6.25
200
+ },
201
+ "compat": {
202
+ "codeMode": "capable"
159
203
  }
160
204
  }
161
205
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/gmi-provider",
3
- "version": "2026.7.2-beta.4",
3
+ "version": "2026.7.2-beta.7",
4
4
  "description": "OpenClaw GMI Cloud 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.4"
21
+ "pluginApi": ">=2026.7.2-beta.7"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.4",
24
+ "openclawVersion": "2026.7.2-beta.7",
25
25
  "bundledDist": false
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.4"
41
+ "openclaw": ">=2026.7.2-beta.7"
43
42
  },
44
43
  "peerDependenciesMeta": {
45
44
  "openclaw": {
@@ -1,114 +0,0 @@
1
- import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
2
- //#endregion
3
- //#region extensions/gmi/models.ts
4
- const GMI_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
5
- providerId: "gmi",
6
- catalog: {
7
- "aliases": {
8
- "gmi-cloud": { "provider": "gmi" },
9
- "gmicloud": { "provider": "gmi" }
10
- },
11
- "providers": { "gmi": {
12
- "baseUrl": "https://api.gmi-serving.com/v1",
13
- "api": "openai-completions",
14
- "models": [
15
- {
16
- "id": "zai-org/GLM-5.1-FP8",
17
- "name": "GLM-5.1 FP8",
18
- "reasoning": true,
19
- "input": ["text"],
20
- "contextWindow": 202752,
21
- "maxTokens": 65536,
22
- "cost": {
23
- "input": 0,
24
- "output": 0,
25
- "cacheRead": 0,
26
- "cacheWrite": 0
27
- }
28
- },
29
- {
30
- "id": "deepseek-ai/DeepSeek-V3.2",
31
- "name": "DeepSeek V3.2",
32
- "reasoning": false,
33
- "input": ["text"],
34
- "contextWindow": 163840,
35
- "maxTokens": 65536,
36
- "cost": {
37
- "input": 0,
38
- "output": 0,
39
- "cacheRead": 0,
40
- "cacheWrite": 0
41
- }
42
- },
43
- {
44
- "id": "moonshotai/Kimi-K2.5",
45
- "name": "Kimi K2.5",
46
- "reasoning": true,
47
- "input": ["text", "image"],
48
- "contextWindow": 262144,
49
- "maxTokens": 65536,
50
- "cost": {
51
- "input": 0,
52
- "output": 0,
53
- "cacheRead": 0,
54
- "cacheWrite": 0
55
- }
56
- },
57
- {
58
- "id": "google/gemini-3.1-flash-lite",
59
- "name": "Gemini 3.1 Flash Lite",
60
- "reasoning": false,
61
- "input": ["text", "image"],
62
- "contextWindow": 1048576,
63
- "maxTokens": 65536,
64
- "cost": {
65
- "input": 0,
66
- "output": 0,
67
- "cacheRead": 0,
68
- "cacheWrite": 0
69
- }
70
- },
71
- {
72
- "id": "anthropic/claude-sonnet-4.6",
73
- "name": "Claude Sonnet 4.6",
74
- "reasoning": false,
75
- "input": ["text", "image"],
76
- "contextWindow": 2e5,
77
- "maxTokens": 64e3,
78
- "cost": {
79
- "input": 0,
80
- "output": 0,
81
- "cacheRead": 0,
82
- "cacheWrite": 0
83
- }
84
- },
85
- {
86
- "id": "openai/gpt-5.4",
87
- "name": "GPT-5.4",
88
- "reasoning": true,
89
- "input": ["text", "image"],
90
- "contextWindow": 4e5,
91
- "maxTokens": 128e3,
92
- "cost": {
93
- "input": 0,
94
- "output": 0,
95
- "cacheRead": 0,
96
- "cacheWrite": 0
97
- }
98
- }
99
- ]
100
- } },
101
- "discovery": { "gmi": "refreshable" }
102
- }.providers.gmi
103
- });
104
- const GMI_BASE_URL = GMI_MANIFEST_PROVIDER.baseUrl;
105
- const GMI_MODEL_CATALOG = GMI_MANIFEST_PROVIDER.models;
106
- const GMI_DEFAULT_MODEL_REF = "gmi/google/gemini-3.1-flash-lite";
107
- function buildGmiModelDefinition(model) {
108
- return {
109
- ...model,
110
- api: "openai-completions"
111
- };
112
- }
113
- //#endregion
114
- export { buildGmiModelDefinition as i, GMI_DEFAULT_MODEL_REF as n, GMI_MODEL_CATALOG as r, GMI_BASE_URL as t };
package/dist/models.js DELETED
@@ -1,2 +0,0 @@
1
- import { i as buildGmiModelDefinition, n as GMI_DEFAULT_MODEL_REF, r as GMI_MODEL_CATALOG, t as GMI_BASE_URL } from "./models-B9neh8ZK.js";
2
- export { GMI_BASE_URL, GMI_DEFAULT_MODEL_REF, GMI_MODEL_CATALOG, buildGmiModelDefinition };
@@ -1,11 +0,0 @@
1
- import { i as buildGmiModelDefinition, r as GMI_MODEL_CATALOG, t as GMI_BASE_URL } from "./models-B9neh8ZK.js";
2
- //#region extensions/gmi/provider-catalog.ts
3
- function buildGmiProvider() {
4
- return {
5
- baseUrl: GMI_BASE_URL,
6
- api: "openai-completions",
7
- models: GMI_MODEL_CATALOG.map(buildGmiModelDefinition)
8
- };
9
- }
10
- //#endregion
11
- export { buildGmiProvider };
@@ -1,12 +0,0 @@
1
- {
2
- "name": "@openclaw/gmi-provider",
3
- "version": "2026.7.2-beta.4",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "@openclaw/gmi-provider",
9
- "version": "2026.7.2-beta.4"
10
- }
11
- }
12
- }