@openclaw/fireworks-provider 2026.7.2-beta.7 → 2026.8.1-beta.3
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/stream.js +7 -12
- package/package.json +4 -4
package/dist/stream.js
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
import { isFireworksKimiModelId } from "./model-id.js";
|
|
2
2
|
import { normalizeProviderId } from "openclaw/plugin-sdk/provider-model-shared";
|
|
3
|
-
import {
|
|
4
|
-
import { streamWithPayloadPatch } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
3
|
+
import { createPayloadPatchStreamWrapper } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
5
4
|
//#region extensions/fireworks/stream.ts
|
|
6
5
|
function isFireworksProviderId(providerId) {
|
|
7
6
|
const normalized = normalizeProviderId(providerId);
|
|
8
7
|
return normalized === "fireworks" || normalized === "fireworks-ai";
|
|
9
8
|
}
|
|
10
|
-
function createFireworksKimiThinkingDisabledWrapper(baseStreamFn) {
|
|
11
|
-
const underlying = baseStreamFn ?? streamSimple;
|
|
12
|
-
return (model, context, options) => streamWithPayloadPatch(underlying, model, context, options, (payloadObj) => {
|
|
13
|
-
payloadObj.thinking = { type: "disabled" };
|
|
14
|
-
delete payloadObj.reasoning;
|
|
15
|
-
delete payloadObj.reasoning_effort;
|
|
16
|
-
delete payloadObj.reasoningEffort;
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
9
|
function wrapFireworksProviderStream(ctx) {
|
|
20
10
|
if (!isFireworksProviderId(ctx.provider) || ctx.model?.api !== "openai-completions" || !isFireworksKimiModelId(ctx.modelId)) return;
|
|
21
|
-
return
|
|
11
|
+
return createPayloadPatchStreamWrapper(ctx.streamFn, ({ payload }) => {
|
|
12
|
+
payload.thinking = { type: "disabled" };
|
|
13
|
+
delete payload.reasoning;
|
|
14
|
+
delete payload.reasoning_effort;
|
|
15
|
+
delete payload.reasoningEffort;
|
|
16
|
+
});
|
|
22
17
|
}
|
|
23
18
|
//#endregion
|
|
24
19
|
export { wrapFireworksProviderStream };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fireworks-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.8.1-beta.3",
|
|
4
4
|
"description": "OpenClaw Fireworks provider plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"openclaw": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"minHostVersion": ">=2026.6.9"
|
|
15
15
|
},
|
|
16
16
|
"compat": {
|
|
17
|
-
"pluginApi": ">=2026.
|
|
17
|
+
"pluginApi": ">=2026.8.1-beta.3"
|
|
18
18
|
},
|
|
19
19
|
"build": {
|
|
20
|
-
"openclawVersion": "2026.
|
|
20
|
+
"openclawVersion": "2026.8.1-beta.3",
|
|
21
21
|
"bundledDist": false
|
|
22
22
|
},
|
|
23
23
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.
|
|
41
|
+
"openclaw": ">=2026.8.1-beta.3"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|