@openclaw/fireworks-provider 2026.7.2-beta.4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isFireworksKimiModelId } from "./model-id.js";
2
- import { n as FIREWORKS_DEFAULT_CONTEXT_WINDOW, o as buildFireworksProvider, r as FIREWORKS_DEFAULT_MAX_TOKENS, s as isFireworksCatalogModelId, t as FIREWORKS_BASE_URL } from "./provider-catalog-gnH3t6PT.js";
3
- import { FIREWORKS_DEFAULT_MODEL_REF, applyFireworksConfig } from "./onboard.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 "./provider-catalog-C6EJFYC3.js";
3
+ import { applyFireworksConfig } from "./onboard.js";
4
4
  import { wrapFireworksProviderStream } from "./stream.js";
5
5
  import { resolveFireworksThinkingProfile } from "./thinking-policy.js";
6
6
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
@@ -24,7 +24,7 @@ function resolveFireworksDynamicModel(ctx) {
24
24
  return cloneFirstTemplateModel({
25
25
  providerId: PROVIDER_ID,
26
26
  modelId,
27
- templateIds: ["accounts/fireworks/routers/kimi-k2p6-turbo"],
27
+ templateIds: [FIREWORKS_DEFAULT_MODEL_ID],
28
28
  ctx,
29
29
  patch: {
30
30
  provider: PROVIDER_ID,
@@ -53,24 +53,13 @@ var fireworks_default = defineSingleProviderPluginEntry({
53
53
  id: PROVIDER_ID,
54
54
  name: "Fireworks Provider",
55
55
  description: "Bundled Fireworks AI provider plugin",
56
+ manifest: openclaw_plugin_default,
56
57
  provider: {
57
58
  label: "Fireworks",
58
59
  aliases: ["fireworks-ai"],
59
60
  docsPath: "/providers/fireworks",
60
- auth: [{
61
- methodId: "api-key",
62
- label: "Fireworks API key",
63
- hint: "API key",
64
- optionKey: "fireworksApiKey",
65
- flagName: "--fireworks-api-key",
66
- envVar: "FIREWORKS_API_KEY",
67
- promptMessage: "Enter Fireworks API key",
68
- defaultModel: FIREWORKS_DEFAULT_MODEL_REF,
69
- applyConfig: (cfg) => applyFireworksConfig(cfg)
70
- }],
61
+ manifestAuth: { applyConfig: applyFireworksConfig },
71
62
  catalog: {
72
- buildProvider: buildFireworksProvider,
73
- buildStaticProvider: buildFireworksProvider,
74
63
  allowExplicitBaseUrl: true,
75
64
  liveModelDiscovery: true
76
65
  },
package/dist/onboard.js CHANGED
@@ -1,7 +1,6 @@
1
- import { a as buildFireworksCatalogModels, i as FIREWORKS_DEFAULT_MODEL_ID, o as buildFireworksProvider } from "./provider-catalog-gnH3t6PT.js";
1
+ import { a as FIREWORKS_DEFAULT_MODEL_REF, i as FIREWORKS_DEFAULT_MODEL_ID, o as buildFireworksCatalogModels, s as buildFireworksProvider } from "./provider-catalog-C6EJFYC3.js";
2
2
  import { createDefaultModelsPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
3
3
  //#region extensions/fireworks/onboard.ts
4
- const FIREWORKS_DEFAULT_MODEL_REF = `fireworks/${FIREWORKS_DEFAULT_MODEL_ID}`;
5
4
  const fireworksPresetAppliers = createDefaultModelsPresetAppliers({
6
5
  primaryModelRef: FIREWORKS_DEFAULT_MODEL_REF,
7
6
  resolveParams: (_cfg) => {
@@ -14,7 +13,7 @@ const fireworksPresetAppliers = createDefaultModelsPresetAppliers({
14
13
  defaultModelId: FIREWORKS_DEFAULT_MODEL_ID,
15
14
  aliases: [{
16
15
  modelRef: FIREWORKS_DEFAULT_MODEL_REF,
17
- alias: "Kimi K2.6 Turbo"
16
+ alias: "GLM 5.2 Fast"
18
17
  }]
19
18
  };
20
19
  }
@@ -23,4 +22,4 @@ function applyFireworksConfig(cfg) {
23
22
  return fireworksPresetAppliers.applyConfig(cfg);
24
23
  }
25
24
  //#endregion
26
- export { FIREWORKS_DEFAULT_MODEL_REF, applyFireworksConfig };
25
+ export { applyFireworksConfig };
@@ -0,0 +1,115 @@
1
+ import { buildManifestModelProviderConfig, readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
2
+ //#region extensions/fireworks/openclaw.plugin.json
3
+ var openclaw_plugin_default = {
4
+ id: "fireworks",
5
+ activation: { "onStartup": false },
6
+ enabledByDefault: true,
7
+ providers: ["fireworks"],
8
+ setup: { "providers": [{
9
+ "id": "fireworks",
10
+ "envVars": ["FIREWORKS_API_KEY"]
11
+ }] },
12
+ providerAuthChoices: [{
13
+ "provider": "fireworks",
14
+ "method": "api-key",
15
+ "choiceId": "fireworks-api-key",
16
+ "appGuidedSecret": true,
17
+ "choiceLabel": "Fireworks API key",
18
+ "groupId": "fireworks",
19
+ "groupLabel": "Fireworks",
20
+ "groupHint": "API key",
21
+ "optionKey": "fireworksApiKey",
22
+ "cliFlag": "--fireworks-api-key",
23
+ "cliOption": "--fireworks-api-key <key>",
24
+ "cliDescription": "Fireworks API key"
25
+ }],
26
+ modelCatalog: {
27
+ "providers": { "fireworks": {
28
+ "baseUrl": "https://api.fireworks.ai/inference/v1",
29
+ "api": "openai-completions",
30
+ "defaultModel": "accounts/fireworks/routers/glm-5p2-fast",
31
+ "models": [
32
+ {
33
+ "id": "accounts/fireworks/routers/glm-5p2-fast",
34
+ "name": "GLM 5.2 Fast",
35
+ "reasoning": true,
36
+ "input": ["text", "image"],
37
+ "contextWindow": 256e3,
38
+ "maxTokens": 256e3,
39
+ "cost": {
40
+ "input": 2.1,
41
+ "output": 6.6,
42
+ "cacheRead": .21,
43
+ "cacheWrite": 0
44
+ }
45
+ },
46
+ {
47
+ "id": "accounts/fireworks/models/kimi-k2p6",
48
+ "name": "Kimi K2.6",
49
+ "reasoning": false,
50
+ "input": ["text", "image"],
51
+ "contextWindow": 262144,
52
+ "maxTokens": 262144,
53
+ "cost": {
54
+ "input": .95,
55
+ "output": 4,
56
+ "cacheRead": .16,
57
+ "cacheWrite": 0
58
+ }
59
+ },
60
+ {
61
+ "id": "accounts/fireworks/routers/kimi-k2p6-turbo",
62
+ "name": "Kimi K2.6 Fast",
63
+ "reasoning": false,
64
+ "input": ["text", "image"],
65
+ "contextWindow": 262144,
66
+ "maxTokens": 256e3,
67
+ "compat": { "unsupportedToolSchemaKeywords": ["not"] },
68
+ "cost": {
69
+ "input": 2,
70
+ "output": 8,
71
+ "cacheRead": .3,
72
+ "cacheWrite": 0
73
+ }
74
+ }
75
+ ]
76
+ } },
77
+ "discovery": { "fireworks": "refreshable" }
78
+ },
79
+ configSchema: {
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "properties": {}
83
+ }
84
+ };
85
+ //#endregion
86
+ //#region extensions/fireworks/provider-catalog.ts
87
+ const FIREWORKS_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
88
+ providerId: "fireworks",
89
+ catalog: openclaw_plugin_default.modelCatalog.providers.fireworks
90
+ });
91
+ const FIREWORKS_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(openclaw_plugin_default, "fireworks");
92
+ const FIREWORKS_BASE_URL = FIREWORKS_MANIFEST_PROVIDER.baseUrl;
93
+ const FIREWORKS_DEFAULT_MODEL_ID = FIREWORKS_DEFAULT_MODEL_REF.slice(10);
94
+ function requireFireworksManifestModel(id) {
95
+ const model = FIREWORKS_MANIFEST_PROVIDER.models.find((entry) => entry.id === id);
96
+ if (!model) throw new Error(`Missing Fireworks modelCatalog row ${id}`);
97
+ return model;
98
+ }
99
+ const FIREWORKS_DEFAULT_MODEL = requireFireworksManifestModel(FIREWORKS_DEFAULT_MODEL_ID);
100
+ const FIREWORKS_DEFAULT_CONTEXT_WINDOW = FIREWORKS_DEFAULT_MODEL.contextWindow;
101
+ const FIREWORKS_DEFAULT_MAX_TOKENS = FIREWORKS_DEFAULT_MODEL.maxTokens;
102
+ function isFireworksCatalogModelId(modelId) {
103
+ return FIREWORKS_MANIFEST_PROVIDER.models.some((model) => model.id === modelId);
104
+ }
105
+ function buildFireworksCatalogModels() {
106
+ return FIREWORKS_MANIFEST_PROVIDER.models.map((model) => structuredClone(model));
107
+ }
108
+ function buildFireworksProvider() {
109
+ return buildManifestModelProviderConfig({
110
+ providerId: "fireworks",
111
+ catalog: openclaw_plugin_default.modelCatalog.providers.fireworks
112
+ });
113
+ }
114
+ //#endregion
115
+ export { FIREWORKS_DEFAULT_MODEL_REF as a, isFireworksCatalogModelId as c, FIREWORKS_DEFAULT_MODEL_ID as i, openclaw_plugin_default as l, FIREWORKS_DEFAULT_CONTEXT_WINDOW as n, buildFireworksCatalogModels as o, FIREWORKS_DEFAULT_MAX_TOKENS as r, buildFireworksProvider as s, FIREWORKS_BASE_URL as t };
@@ -1,2 +1,2 @@
1
- import { a as buildFireworksCatalogModels, i as FIREWORKS_DEFAULT_MODEL_ID, n as FIREWORKS_DEFAULT_CONTEXT_WINDOW, o as buildFireworksProvider, r as FIREWORKS_DEFAULT_MAX_TOKENS, s as isFireworksCatalogModelId, t as FIREWORKS_BASE_URL } from "./provider-catalog-gnH3t6PT.js";
2
- export { FIREWORKS_BASE_URL, FIREWORKS_DEFAULT_CONTEXT_WINDOW, FIREWORKS_DEFAULT_MAX_TOKENS, FIREWORKS_DEFAULT_MODEL_ID, buildFireworksCatalogModels, buildFireworksProvider, isFireworksCatalogModelId };
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 "./provider-catalog-C6EJFYC3.js";
2
+ export { FIREWORKS_BASE_URL, FIREWORKS_DEFAULT_CONTEXT_WINDOW, FIREWORKS_DEFAULT_MAX_TOKENS, FIREWORKS_DEFAULT_MODEL_ID, FIREWORKS_DEFAULT_MODEL_REF, buildFireworksCatalogModels, buildFireworksProvider, isFireworksCatalogModelId };
@@ -34,7 +34,22 @@
34
34
  "fireworks": {
35
35
  "baseUrl": "https://api.fireworks.ai/inference/v1",
36
36
  "api": "openai-completions",
37
+ "defaultModel": "accounts/fireworks/routers/glm-5p2-fast",
37
38
  "models": [
39
+ {
40
+ "id": "accounts/fireworks/routers/glm-5p2-fast",
41
+ "name": "GLM 5.2 Fast",
42
+ "reasoning": true,
43
+ "input": ["text", "image"],
44
+ "contextWindow": 256000,
45
+ "maxTokens": 256000,
46
+ "cost": {
47
+ "input": 2.1,
48
+ "output": 6.6,
49
+ "cacheRead": 0.21,
50
+ "cacheWrite": 0
51
+ }
52
+ },
38
53
  {
39
54
  "id": "accounts/fireworks/models/kimi-k2p6",
40
55
  "name": "Kimi K2.6",
@@ -45,24 +60,24 @@
45
60
  "cost": {
46
61
  "input": 0.95,
47
62
  "output": 4,
48
- "cacheRead": 0,
63
+ "cacheRead": 0.16,
49
64
  "cacheWrite": 0
50
65
  }
51
66
  },
52
67
  {
53
68
  "id": "accounts/fireworks/routers/kimi-k2p6-turbo",
54
- "name": "Kimi K2.6 Turbo (Fire Pass)",
69
+ "name": "Kimi K2.6 Fast",
55
70
  "reasoning": false,
56
71
  "input": ["text", "image"],
57
- "contextWindow": 256000,
72
+ "contextWindow": 262144,
58
73
  "maxTokens": 256000,
59
74
  "compat": {
60
75
  "unsupportedToolSchemaKeywords": ["not"]
61
76
  },
62
77
  "cost": {
63
- "input": 0,
64
- "output": 0,
65
- "cacheRead": 0,
78
+ "input": 2,
79
+ "output": 8,
80
+ "cacheRead": 0.3,
66
81
  "cacheWrite": 0
67
82
  }
68
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/fireworks-provider",
3
- "version": "2026.7.2-beta.4",
3
+ "version": "2026.7.2-beta.5",
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.7.2-beta.4"
17
+ "pluginApi": ">=2026.7.2-beta.5"
18
18
  },
19
19
  "build": {
20
- "openclawVersion": "2026.7.2-beta.4",
20
+ "openclawVersion": "2026.7.2-beta.5",
21
21
  "bundledDist": false
22
22
  },
23
23
  "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.5"
43
42
  },
44
43
  "peerDependenciesMeta": {
45
44
  "openclaw": {
@@ -1,67 +0,0 @@
1
- import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
2
- //#region extensions/fireworks/openclaw.plugin.json
3
- var modelCatalog = {
4
- "providers": { "fireworks": {
5
- "baseUrl": "https://api.fireworks.ai/inference/v1",
6
- "api": "openai-completions",
7
- "models": [{
8
- "id": "accounts/fireworks/models/kimi-k2p6",
9
- "name": "Kimi K2.6",
10
- "reasoning": false,
11
- "input": ["text", "image"],
12
- "contextWindow": 262144,
13
- "maxTokens": 262144,
14
- "cost": {
15
- "input": .95,
16
- "output": 4,
17
- "cacheRead": 0,
18
- "cacheWrite": 0
19
- }
20
- }, {
21
- "id": "accounts/fireworks/routers/kimi-k2p6-turbo",
22
- "name": "Kimi K2.6 Turbo (Fire Pass)",
23
- "reasoning": false,
24
- "input": ["text", "image"],
25
- "contextWindow": 256e3,
26
- "maxTokens": 256e3,
27
- "compat": { "unsupportedToolSchemaKeywords": ["not"] },
28
- "cost": {
29
- "input": 0,
30
- "output": 0,
31
- "cacheRead": 0,
32
- "cacheWrite": 0
33
- }
34
- }]
35
- } },
36
- "discovery": { "fireworks": "refreshable" }
37
- };
38
- //#endregion
39
- //#region extensions/fireworks/provider-catalog.ts
40
- const FIREWORKS_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
41
- providerId: "fireworks",
42
- catalog: modelCatalog.providers.fireworks
43
- });
44
- const FIREWORKS_BASE_URL = FIREWORKS_MANIFEST_PROVIDER.baseUrl;
45
- const FIREWORKS_DEFAULT_MODEL_ID = "accounts/fireworks/routers/kimi-k2p6-turbo";
46
- function requireFireworksManifestModel(id) {
47
- const model = FIREWORKS_MANIFEST_PROVIDER.models.find((entry) => entry.id === id);
48
- if (!model) throw new Error(`Missing Fireworks modelCatalog row ${id}`);
49
- return model;
50
- }
51
- const FIREWORKS_DEFAULT_MODEL = requireFireworksManifestModel(FIREWORKS_DEFAULT_MODEL_ID);
52
- const FIREWORKS_DEFAULT_CONTEXT_WINDOW = FIREWORKS_DEFAULT_MODEL.contextWindow;
53
- const FIREWORKS_DEFAULT_MAX_TOKENS = FIREWORKS_DEFAULT_MODEL.maxTokens;
54
- function isFireworksCatalogModelId(modelId) {
55
- return FIREWORKS_MANIFEST_PROVIDER.models.some((model) => model.id === modelId);
56
- }
57
- function buildFireworksCatalogModels() {
58
- return FIREWORKS_MANIFEST_PROVIDER.models.map((model) => structuredClone(model));
59
- }
60
- function buildFireworksProvider() {
61
- return buildManifestModelProviderConfig({
62
- providerId: "fireworks",
63
- catalog: modelCatalog.providers.fireworks
64
- });
65
- }
66
- //#endregion
67
- export { buildFireworksCatalogModels as a, FIREWORKS_DEFAULT_MODEL_ID as i, FIREWORKS_DEFAULT_CONTEXT_WINDOW as n, buildFireworksProvider as o, FIREWORKS_DEFAULT_MAX_TOKENS as r, isFireworksCatalogModelId as s, FIREWORKS_BASE_URL as t };
@@ -1,12 +0,0 @@
1
- {
2
- "name": "@openclaw/fireworks-provider",
3
- "version": "2026.7.2-beta.4",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "@openclaw/fireworks-provider",
9
- "version": "2026.7.2-beta.4"
10
- }
11
- }
12
- }