@openclaw/fireworks-provider 2026.9.6 → 2026.9.8
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
CHANGED
|
Binary file
|
|
@@ -33,11 +33,11 @@ var openclaw_plugin_default = {
|
|
|
33
33
|
"providers": { "fireworks": {
|
|
34
34
|
"baseUrl": "https://api.fireworks.ai/inference/v1",
|
|
35
35
|
"api": "openai-completions",
|
|
36
|
-
"defaultModel": "accounts/fireworks/routers/glm-
|
|
36
|
+
"defaultModel": "accounts/fireworks/routers/glm-5p3-fast",
|
|
37
37
|
"models": [
|
|
38
38
|
{
|
|
39
|
-
"id": "accounts/fireworks/routers/glm-
|
|
40
|
-
"name": "GLM 5.
|
|
39
|
+
"id": "accounts/fireworks/routers/glm-5p3-fast",
|
|
40
|
+
"name": "GLM 5.3 Fast",
|
|
41
41
|
"reasoning": true,
|
|
42
42
|
"input": ["text"],
|
|
43
43
|
"contextWindow": 256e3,
|
|
@@ -45,7 +45,7 @@ var openclaw_plugin_default = {
|
|
|
45
45
|
"cost": {
|
|
46
46
|
"input": 2.1,
|
|
47
47
|
"output": 6.6,
|
|
48
|
-
"cacheRead": .
|
|
48
|
+
"cacheRead": .39,
|
|
49
49
|
"cacheWrite": 0
|
|
50
50
|
}
|
|
51
51
|
},
|
|
@@ -97,12 +97,8 @@ const FIREWORKS_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
|
|
|
97
97
|
const FIREWORKS_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, "fireworks");
|
|
98
98
|
const FIREWORKS_BASE_URL = FIREWORKS_MANIFEST_PROVIDER.baseUrl;
|
|
99
99
|
const FIREWORKS_DEFAULT_MODEL_ID = FIREWORKS_DEFAULT_MODEL_REF.slice(10);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
if (!model) throw new Error(`Missing Fireworks modelCatalog row ${id}`);
|
|
103
|
-
return model;
|
|
104
|
-
}
|
|
105
|
-
const FIREWORKS_DEFAULT_MODEL = requireFireworksManifestModel(FIREWORKS_DEFAULT_MODEL_ID);
|
|
100
|
+
const FIREWORKS_DEFAULT_MODEL = FIREWORKS_MANIFEST_PROVIDER.models.find((model) => model.id === FIREWORKS_DEFAULT_MODEL_ID);
|
|
101
|
+
if (!FIREWORKS_DEFAULT_MODEL) throw new Error(`Missing Fireworks modelCatalog row ${FIREWORKS_DEFAULT_MODEL_ID}`);
|
|
106
102
|
const FIREWORKS_DEFAULT_CONTEXT_WINDOW = FIREWORKS_DEFAULT_MODEL.contextWindow;
|
|
107
103
|
const FIREWORKS_DEFAULT_MAX_TOKENS = FIREWORKS_DEFAULT_MODEL.maxTokens;
|
|
108
104
|
function isFireworksCatalogModelId(modelId) {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isFireworksKimiModelId } from "./model-id.js";
|
|
2
|
-
import { c as isFireworksCatalogModelId, i as FIREWORKS_DEFAULT_MODEL_ID, l as openclaw_plugin_default, n as FIREWORKS_DEFAULT_CONTEXT_WINDOW, r as FIREWORKS_DEFAULT_MAX_TOKENS, t as FIREWORKS_BASE_URL } from "./.setup/provider-catalog-
|
|
2
|
+
import { c as isFireworksCatalogModelId, i as FIREWORKS_DEFAULT_MODEL_ID, l as openclaw_plugin_default, n as FIREWORKS_DEFAULT_CONTEXT_WINDOW, r as FIREWORKS_DEFAULT_MAX_TOKENS, t as FIREWORKS_BASE_URL } from "./.setup/provider-catalog-qSLq0DTq.mjs";
|
|
3
3
|
import { applyFireworksConfig } from "./onboard.js";
|
|
4
4
|
import { wrapFireworksProviderStream } from "./stream.js";
|
|
5
5
|
import { resolveFireworksThinkingProfile } from "./thinking-policy.js";
|
|
@@ -12,15 +12,9 @@ function isFireworksGlmModelId(modelId) {
|
|
|
12
12
|
const lastSegment = normalized.split("/").pop() ?? normalized;
|
|
13
13
|
return /^glm[-_.]/.test(lastSegment);
|
|
14
14
|
}
|
|
15
|
-
function resolveFireworksDynamicInput(modelId) {
|
|
16
|
-
return isFireworksGlmModelId(modelId) ? ["text"] : ["text", "image"];
|
|
17
|
-
}
|
|
18
15
|
function resolveFireworksDynamicModel(ctx) {
|
|
19
16
|
const modelId = ctx.modelId.trim();
|
|
20
|
-
if (!modelId) return;
|
|
21
|
-
if (isFireworksCatalogModelId(modelId)) return;
|
|
22
|
-
const isKimiModel = isFireworksKimiModelId(modelId);
|
|
23
|
-
const input = resolveFireworksDynamicInput(modelId);
|
|
17
|
+
if (!modelId || isFireworksCatalogModelId(modelId)) return;
|
|
24
18
|
return resolveFamilyForwardCompatModel({
|
|
25
19
|
providerId: PROVIDER_ID,
|
|
26
20
|
modelId,
|
|
@@ -37,8 +31,8 @@ function resolveFireworksDynamicModel(ctx) {
|
|
|
37
31
|
}],
|
|
38
32
|
patch: {
|
|
39
33
|
provider: PROVIDER_ID,
|
|
40
|
-
reasoning: !
|
|
41
|
-
input
|
|
34
|
+
reasoning: !isFireworksKimiModelId(modelId),
|
|
35
|
+
input: isFireworksGlmModelId(modelId) ? ["text"] : ["text", "image"]
|
|
42
36
|
},
|
|
43
37
|
synthesize: true
|
|
44
38
|
});
|
|
@@ -61,7 +55,7 @@ var fireworks_default = defineSingleProviderPluginEntry({
|
|
|
61
55
|
...buildProviderReplayFamilyHooks({ family: "openai-compatible" }),
|
|
62
56
|
wrapStreamFn: wrapFireworksProviderStream,
|
|
63
57
|
resolveThinkingProfile: ({ modelId }) => resolveFireworksThinkingProfile(modelId),
|
|
64
|
-
resolveDynamicModel:
|
|
58
|
+
resolveDynamicModel: resolveFireworksDynamicModel,
|
|
65
59
|
isModernModelRef: () => true
|
|
66
60
|
}
|
|
67
61
|
});
|
package/dist/onboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FIREWORKS_DEFAULT_MODEL_REF, i as FIREWORKS_DEFAULT_MODEL_ID, o as buildFireworksCatalogModels, s as buildFireworksProvider } from "./.setup/provider-catalog-
|
|
1
|
+
import { a as FIREWORKS_DEFAULT_MODEL_REF, i as FIREWORKS_DEFAULT_MODEL_ID, o as buildFireworksCatalogModels, s as buildFireworksProvider } from "./.setup/provider-catalog-qSLq0DTq.mjs";
|
|
2
2
|
import { createDefaultModelsPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
//#region extensions/fireworks/onboard.ts
|
|
4
4
|
const { applyConfig: applyFireworksConfig } = createDefaultModelsPresetAppliers({
|
|
@@ -13,7 +13,7 @@ const { applyConfig: applyFireworksConfig } = createDefaultModelsPresetAppliers(
|
|
|
13
13
|
defaultModelId: FIREWORKS_DEFAULT_MODEL_ID,
|
|
14
14
|
aliases: [{
|
|
15
15
|
modelRef: FIREWORKS_DEFAULT_MODEL_REF,
|
|
16
|
-
alias: "GLM 5.
|
|
16
|
+
alias: "GLM 5.3 Fast"
|
|
17
17
|
}]
|
|
18
18
|
};
|
|
19
19
|
}
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FIREWORKS_DEFAULT_MODEL_REF, c as isFireworksCatalogModelId, i as FIREWORKS_DEFAULT_MODEL_ID, n as FIREWORKS_DEFAULT_CONTEXT_WINDOW, o as buildFireworksCatalogModels, r as FIREWORKS_DEFAULT_MAX_TOKENS, s as buildFireworksProvider, t as FIREWORKS_BASE_URL } from "./.setup/provider-catalog-
|
|
1
|
+
import { a as FIREWORKS_DEFAULT_MODEL_REF, c as isFireworksCatalogModelId, i as FIREWORKS_DEFAULT_MODEL_ID, n as FIREWORKS_DEFAULT_CONTEXT_WINDOW, o as buildFireworksCatalogModels, r as FIREWORKS_DEFAULT_MAX_TOKENS, s as buildFireworksProvider, t as FIREWORKS_BASE_URL } from "./.setup/provider-catalog-qSLq0DTq.mjs";
|
|
2
2
|
export { FIREWORKS_BASE_URL, FIREWORKS_DEFAULT_CONTEXT_WINDOW, FIREWORKS_DEFAULT_MAX_TOKENS, FIREWORKS_DEFAULT_MODEL_ID, FIREWORKS_DEFAULT_MODEL_REF, buildFireworksCatalogModels, buildFireworksProvider, isFireworksCatalogModelId };
|
package/openclaw.plugin.json
CHANGED
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"fireworks": {
|
|
45
45
|
"baseUrl": "https://api.fireworks.ai/inference/v1",
|
|
46
46
|
"api": "openai-completions",
|
|
47
|
-
"defaultModel": "accounts/fireworks/routers/glm-
|
|
47
|
+
"defaultModel": "accounts/fireworks/routers/glm-5p3-fast",
|
|
48
48
|
"models": [
|
|
49
49
|
{
|
|
50
|
-
"id": "accounts/fireworks/routers/glm-
|
|
51
|
-
"name": "GLM 5.
|
|
50
|
+
"id": "accounts/fireworks/routers/glm-5p3-fast",
|
|
51
|
+
"name": "GLM 5.3 Fast",
|
|
52
52
|
"reasoning": true,
|
|
53
53
|
"input": ["text"],
|
|
54
54
|
"contextWindow": 256000,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"cost": {
|
|
57
57
|
"input": 2.1,
|
|
58
58
|
"output": 6.6,
|
|
59
|
-
"cacheRead": 0.
|
|
59
|
+
"cacheRead": 0.39,
|
|
60
60
|
"cacheWrite": 0
|
|
61
61
|
}
|
|
62
62
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/fireworks-provider",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.8",
|
|
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.9.
|
|
17
|
+
"pluginApi": ">=2026.9.8"
|
|
18
18
|
},
|
|
19
19
|
"build": {
|
|
20
|
-
"openclawVersion": "2026.9.
|
|
20
|
+
"openclawVersion": "2026.9.8",
|
|
21
21
|
"bundledDist": false
|
|
22
22
|
},
|
|
23
23
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.9.
|
|
43
|
+
"openclaw": ">=2026.9.8"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|