@openclaw/stepfun-provider 2026.7.2-beta.3 → 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,7 +1,8 @@
|
|
|
1
|
-
import { a as STEPFUN_PLAN_PROVIDER_ID, c as STEPFUN_STANDARD_INTL_BASE_URL, i as STEPFUN_PLAN_INTL_BASE_URL, l as buildStepFunPlanProvider, n as STEPFUN_PLAN_CN_BASE_URL, o as STEPFUN_PROVIDER_ID, r as STEPFUN_PLAN_DEFAULT_MODEL_REF, s as STEPFUN_STANDARD_CN_BASE_URL, t as STEPFUN_DEFAULT_MODEL_REF, u as buildStepFunProvider } from "./provider-catalog-
|
|
1
|
+
import { a as STEPFUN_PLAN_PROVIDER_ID, c as STEPFUN_STANDARD_INTL_BASE_URL, i as STEPFUN_PLAN_INTL_BASE_URL, l as buildStepFunPlanProvider, n as STEPFUN_PLAN_CN_BASE_URL, o as STEPFUN_PROVIDER_ID, r as STEPFUN_PLAN_DEFAULT_MODEL_REF, s as STEPFUN_STANDARD_CN_BASE_URL, t as STEPFUN_DEFAULT_MODEL_REF, u as buildStepFunProvider } from "./provider-catalog-DIT8B8Na.js";
|
|
2
2
|
import { applyStepFunPlanConfig, applyStepFunPlanConfigCn, applyStepFunStandardConfig, applyStepFunStandardConfigCn } from "./onboard.js";
|
|
3
3
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
4
4
|
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
5
|
+
import { buildOpenAICompatibleLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
5
6
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
7
|
//#region extensions/stepfun/index.ts
|
|
7
8
|
function trimExplicitBaseUrl(ctx, providerId) {
|
|
@@ -33,20 +34,20 @@ function resolveDefaultBaseUrl(surface, region) {
|
|
|
33
34
|
if (surface === "plan") return region === "cn" ? STEPFUN_PLAN_CN_BASE_URL : STEPFUN_PLAN_INTL_BASE_URL;
|
|
34
35
|
return region === "cn" ? STEPFUN_STANDARD_CN_BASE_URL : STEPFUN_STANDARD_INTL_BASE_URL;
|
|
35
36
|
}
|
|
36
|
-
function resolveStepFunCatalog(ctx, params) {
|
|
37
|
+
async function resolveStepFunCatalog(ctx, params) {
|
|
37
38
|
const auth = ctx.resolveProviderAuth(params.providerId);
|
|
38
39
|
const apiKey = auth.apiKey ?? ctx.resolveProviderApiKey(params.providerId).apiKey;
|
|
39
40
|
if (!apiKey) return null;
|
|
40
41
|
const explicitBaseUrl = trimExplicitBaseUrl(ctx, params.providerId);
|
|
41
42
|
const region = inferRegionFromBaseUrl(explicitBaseUrl) ?? inferRegionFromExplicitBaseUrls(ctx) ?? inferRegionFromProfileId(auth.profileId) ?? inferRegionFromEnv(ctx.env);
|
|
42
43
|
const baseUrl = explicitBaseUrl ?? resolveDefaultBaseUrl(params.surface, region ?? "intl");
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} };
|
|
44
|
+
const providerConfig = params.surface === "plan" ? buildStepFunPlanProvider(baseUrl) : buildStepFunProvider(baseUrl);
|
|
45
|
+
return { provider: await buildOpenAICompatibleLiveModelProviderConfig({
|
|
46
|
+
providerId: params.providerId,
|
|
47
|
+
providerConfig,
|
|
48
|
+
apiKey,
|
|
49
|
+
discoveryApiKey: auth.discoveryApiKey
|
|
50
|
+
}) };
|
|
50
51
|
}
|
|
51
52
|
function resolveProfileIds(region) {
|
|
52
53
|
return region === "cn" ? ["stepfun:cn", "stepfun-plan:cn"] : ["stepfun:intl", "stepfun-plan:intl"];
|
|
@@ -117,6 +118,10 @@ var stepfun_default = definePluginEntry({
|
|
|
117
118
|
providerId: STEPFUN_PROVIDER_ID,
|
|
118
119
|
surface: "standard"
|
|
119
120
|
})
|
|
121
|
+
},
|
|
122
|
+
staticCatalog: {
|
|
123
|
+
order: "paired",
|
|
124
|
+
run: async () => ({ provider: buildStepFunProvider() })
|
|
120
125
|
}
|
|
121
126
|
});
|
|
122
127
|
api.registerProvider({
|
|
@@ -155,6 +160,10 @@ var stepfun_default = definePluginEntry({
|
|
|
155
160
|
providerId: STEPFUN_PLAN_PROVIDER_ID,
|
|
156
161
|
surface: "plan"
|
|
157
162
|
})
|
|
163
|
+
},
|
|
164
|
+
staticCatalog: {
|
|
165
|
+
order: "paired",
|
|
166
|
+
run: async () => ({ provider: buildStepFunPlanProvider() })
|
|
158
167
|
}
|
|
159
168
|
});
|
|
160
169
|
}
|
package/dist/onboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as STEPFUN_PLAN_PROVIDER_ID, c as STEPFUN_STANDARD_INTL_BASE_URL, i as STEPFUN_PLAN_INTL_BASE_URL, l as buildStepFunPlanProvider, n as STEPFUN_PLAN_CN_BASE_URL, o as STEPFUN_PROVIDER_ID, r as STEPFUN_PLAN_DEFAULT_MODEL_REF, s as STEPFUN_STANDARD_CN_BASE_URL, t as STEPFUN_DEFAULT_MODEL_REF, u as buildStepFunProvider } from "./provider-catalog-
|
|
1
|
+
import { a as STEPFUN_PLAN_PROVIDER_ID, c as STEPFUN_STANDARD_INTL_BASE_URL, i as STEPFUN_PLAN_INTL_BASE_URL, l as buildStepFunPlanProvider, n as STEPFUN_PLAN_CN_BASE_URL, o as STEPFUN_PROVIDER_ID, r as STEPFUN_PLAN_DEFAULT_MODEL_REF, s as STEPFUN_STANDARD_CN_BASE_URL, t as STEPFUN_DEFAULT_MODEL_REF, u as buildStepFunProvider } from "./provider-catalog-DIT8B8Na.js";
|
|
2
2
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
//#region extensions/stepfun/onboard.ts
|
|
4
4
|
function createStepFunPresetAppliers(params) {
|
|
@@ -56,9 +56,9 @@ var modelCatalog = {
|
|
|
56
56
|
"contextWindow": 262144,
|
|
57
57
|
"maxTokens": 65536,
|
|
58
58
|
"cost": {
|
|
59
|
-
"input":
|
|
60
|
-
"output":
|
|
61
|
-
"cacheRead":
|
|
59
|
+
"input": .1,
|
|
60
|
+
"output": .3,
|
|
61
|
+
"cacheRead": .02,
|
|
62
62
|
"cacheWrite": 0
|
|
63
63
|
}
|
|
64
64
|
}]
|
|
@@ -143,8 +143,8 @@ var modelCatalog = {
|
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
"discovery": {
|
|
146
|
-
"stepfun": "
|
|
147
|
-
"stepfun-plan": "
|
|
146
|
+
"stepfun": "refreshable",
|
|
147
|
+
"stepfun-plan": "refreshable"
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
//#endregion
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as STEPFUN_PLAN_PROVIDER_ID, c as STEPFUN_STANDARD_INTL_BASE_URL, i as STEPFUN_PLAN_INTL_BASE_URL, l as buildStepFunPlanProvider, n as STEPFUN_PLAN_CN_BASE_URL, o as STEPFUN_PROVIDER_ID, r as STEPFUN_PLAN_DEFAULT_MODEL_REF, s as STEPFUN_STANDARD_CN_BASE_URL, t as STEPFUN_DEFAULT_MODEL_REF, u as buildStepFunProvider } from "./provider-catalog-
|
|
1
|
+
import { a as STEPFUN_PLAN_PROVIDER_ID, c as STEPFUN_STANDARD_INTL_BASE_URL, i as STEPFUN_PLAN_INTL_BASE_URL, l as buildStepFunPlanProvider, n as STEPFUN_PLAN_CN_BASE_URL, o as STEPFUN_PROVIDER_ID, r as STEPFUN_PLAN_DEFAULT_MODEL_REF, s as STEPFUN_STANDARD_CN_BASE_URL, t as STEPFUN_DEFAULT_MODEL_REF, u as buildStepFunProvider } from "./provider-catalog-DIT8B8Na.js";
|
|
2
2
|
export { STEPFUN_DEFAULT_MODEL_REF, STEPFUN_PLAN_CN_BASE_URL, STEPFUN_PLAN_DEFAULT_MODEL_REF, STEPFUN_PLAN_INTL_BASE_URL, STEPFUN_PLAN_PROVIDER_ID, STEPFUN_PROVIDER_ID, STEPFUN_STANDARD_CN_BASE_URL, STEPFUN_STANDARD_INTL_BASE_URL, buildStepFunPlanProvider, buildStepFunProvider };
|
package/openclaw.plugin.json
CHANGED
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"contextWindow": 262144,
|
|
74
74
|
"maxTokens": 65536,
|
|
75
75
|
"cost": {
|
|
76
|
-
"input": 0,
|
|
77
|
-
"output": 0,
|
|
78
|
-
"cacheRead": 0,
|
|
76
|
+
"input": 0.1,
|
|
77
|
+
"output": 0.3,
|
|
78
|
+
"cacheRead": 0.02,
|
|
79
79
|
"cacheWrite": 0
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"discovery": {
|
|
160
|
-
"stepfun": "
|
|
161
|
-
"stepfun-plan": "
|
|
160
|
+
"stepfun": "refreshable",
|
|
161
|
+
"stepfun-plan": "refreshable"
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
"providerAuthChoices": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/stepfun-provider",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.5",
|
|
4
4
|
"description": "OpenClaw StepFun provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.6.9"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
21
|
+
"pluginApi": ">=2026.7.2-beta.5"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.2-beta.
|
|
24
|
+
"openclawVersion": "2026.7.2-beta.5",
|
|
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.
|
|
41
|
+
"openclaw": ">=2026.7.2-beta.5"
|
|
43
42
|
},
|
|
44
43
|
"peerDependenciesMeta": {
|
|
45
44
|
"openclaw": {
|
package/npm-shrinkwrap.json
DELETED