@openclaw/gmi-provider 2026.10.5-beta.4 → 2026.10.6
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 +10 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { readConfiguredProviderCatalogEntries } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
2
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
3
3
|
import { buildProviderReplayFamilyHooks } from "openclaw/plugin-sdk/provider-model-shared";
|
|
4
|
+
import { applyOpenAICompletionsToolReasoning, createPayloadPatchStreamWrapper } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
4
5
|
import { buildProviderToolCompatFamilyHooks } from "openclaw/plugin-sdk/provider-tools";
|
|
5
6
|
//#region extensions/gmi/openclaw.plugin.json
|
|
6
7
|
var openclaw_plugin_default = {
|
|
@@ -193,6 +194,12 @@ var openclaw_plugin_default = {
|
|
|
193
194
|
//#endregion
|
|
194
195
|
//#region extensions/gmi/index.ts
|
|
195
196
|
const PROVIDER_ID = "gmi";
|
|
197
|
+
function wrapGmiOpenAIToolReasoning(ctx) {
|
|
198
|
+
const wrapped = createPayloadPatchStreamWrapper(ctx.streamFn, ({ model, payload }) => {
|
|
199
|
+
if ((ctx.sourceApi ?? model.api) === "openai-completions" && model.id.startsWith("openai/")) applyOpenAICompletionsToolReasoning(payload, { id: model.id.slice(7) });
|
|
200
|
+
});
|
|
201
|
+
return Object.assign(wrapped, { preservesGenericCompatibility: true });
|
|
202
|
+
}
|
|
196
203
|
var gmi_default = defineSingleProviderPluginEntry({
|
|
197
204
|
id: PROVIDER_ID,
|
|
198
205
|
name: "GMI Cloud Provider",
|
|
@@ -219,7 +226,9 @@ var gmi_default = defineSingleProviderPluginEntry({
|
|
|
219
226
|
family: "openai-compatible",
|
|
220
227
|
dropReasoningFromHistory: false
|
|
221
228
|
}),
|
|
222
|
-
...buildProviderToolCompatFamilyHooks("openai")
|
|
229
|
+
...buildProviderToolCompatFamilyHooks("openai"),
|
|
230
|
+
wrapStreamFn: wrapGmiOpenAIToolReasoning,
|
|
231
|
+
wrapSimpleCompletionStreamFn: wrapGmiOpenAIToolReasoning
|
|
223
232
|
}
|
|
224
233
|
});
|
|
225
234
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/gmi-provider",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.6",
|
|
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.10.
|
|
21
|
+
"pluginApi": ">=2026.10.6"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.10.
|
|
24
|
+
"openclawVersion": "2026.10.6",
|
|
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.10.
|
|
43
|
+
"openclaw": ">=2026.10.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|