@openclaw/stepfun-provider 2026.7.2-beta.7 → 2026.7.34
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.
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
|
+
//#region extensions/stepfun/openclaw.plugin.json
|
|
3
|
+
var modelCatalog = {
|
|
4
|
+
"providers": {
|
|
5
|
+
"stepfun": {
|
|
6
|
+
"baseUrl": "https://api.stepfun.ai/v1",
|
|
7
|
+
"api": "openai-completions",
|
|
8
|
+
"models": [{
|
|
9
|
+
"id": "step-3.5-flash",
|
|
10
|
+
"name": "Step 3.5 Flash",
|
|
11
|
+
"reasoning": true,
|
|
12
|
+
"input": ["text"],
|
|
13
|
+
"contextWindow": 262144,
|
|
14
|
+
"maxTokens": 65536,
|
|
15
|
+
"cost": {
|
|
16
|
+
"input": 0,
|
|
17
|
+
"output": 0,
|
|
18
|
+
"cacheRead": 0,
|
|
19
|
+
"cacheWrite": 0
|
|
20
|
+
}
|
|
21
|
+
}]
|
|
22
|
+
},
|
|
23
|
+
"stepfun-plan": {
|
|
24
|
+
"baseUrl": "https://api.stepfun.ai/step_plan/v1",
|
|
25
|
+
"api": "openai-completions",
|
|
26
|
+
"models": [{
|
|
27
|
+
"id": "step-3.5-flash",
|
|
28
|
+
"name": "Step 3.5 Flash",
|
|
29
|
+
"reasoning": true,
|
|
30
|
+
"input": ["text"],
|
|
31
|
+
"contextWindow": 262144,
|
|
32
|
+
"maxTokens": 65536,
|
|
33
|
+
"cost": {
|
|
34
|
+
"input": 0,
|
|
35
|
+
"output": 0,
|
|
36
|
+
"cacheRead": 0,
|
|
37
|
+
"cacheWrite": 0
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
"id": "step-3.5-flash-2603",
|
|
41
|
+
"name": "Step 3.5 Flash 2603",
|
|
42
|
+
"reasoning": true,
|
|
43
|
+
"input": ["text"],
|
|
44
|
+
"contextWindow": 262144,
|
|
45
|
+
"maxTokens": 65536,
|
|
46
|
+
"cost": {
|
|
47
|
+
"input": 0,
|
|
48
|
+
"output": 0,
|
|
49
|
+
"cacheRead": 0,
|
|
50
|
+
"cacheWrite": 0
|
|
51
|
+
}
|
|
52
|
+
}]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"discovery": {
|
|
56
|
+
"stepfun": "static",
|
|
57
|
+
"stepfun-plan": "static"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region extensions/stepfun/provider-catalog.ts
|
|
62
|
+
const STEPFUN_PROVIDER_ID = "stepfun";
|
|
63
|
+
const STEPFUN_PLAN_PROVIDER_ID = "stepfun-plan";
|
|
64
|
+
const STEPFUN_STANDARD_CN_BASE_URL = "https://api.stepfun.com/v1";
|
|
65
|
+
const STEPFUN_STANDARD_INTL_BASE_URL = "https://api.stepfun.ai/v1";
|
|
66
|
+
const STEPFUN_PLAN_CN_BASE_URL = "https://api.stepfun.com/step_plan/v1";
|
|
67
|
+
const STEPFUN_PLAN_INTL_BASE_URL = "https://api.stepfun.ai/step_plan/v1";
|
|
68
|
+
const STEPFUN_DEFAULT_MODEL_ID = "step-3.5-flash";
|
|
69
|
+
const STEPFUN_DEFAULT_MODEL_REF = `${STEPFUN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`;
|
|
70
|
+
const STEPFUN_PLAN_DEFAULT_MODEL_REF = `${STEPFUN_PLAN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`;
|
|
71
|
+
function buildStepFunManifestProvider(providerId, baseUrl) {
|
|
72
|
+
const provider = buildManifestModelProviderConfig({
|
|
73
|
+
providerId,
|
|
74
|
+
catalog: modelCatalog.providers[providerId]
|
|
75
|
+
});
|
|
76
|
+
return provider.baseUrl === baseUrl ? provider : {
|
|
77
|
+
...provider,
|
|
78
|
+
baseUrl
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function buildStepFunProvider(baseUrl = STEPFUN_STANDARD_INTL_BASE_URL) {
|
|
82
|
+
return buildStepFunManifestProvider(STEPFUN_PROVIDER_ID, baseUrl);
|
|
83
|
+
}
|
|
84
|
+
function buildStepFunPlanProvider(baseUrl = STEPFUN_PLAN_INTL_BASE_URL) {
|
|
85
|
+
return buildStepFunManifestProvider(STEPFUN_PLAN_PROVIDER_ID, baseUrl);
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { STEPFUN_PLAN_PROVIDER_ID as a, STEPFUN_STANDARD_INTL_BASE_URL as c, STEPFUN_PLAN_INTL_BASE_URL as i, buildStepFunPlanProvider as l, STEPFUN_PLAN_CN_BASE_URL as n, STEPFUN_PROVIDER_ID as o, STEPFUN_PLAN_DEFAULT_MODEL_REF as r, STEPFUN_STANDARD_CN_BASE_URL as s, STEPFUN_DEFAULT_MODEL_REF as t, buildStepFunProvider as u };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
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 "
|
|
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 "./.setup/provider-catalog-D-r4WCiD.mjs";
|
|
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";
|
|
6
5
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
6
|
//#region extensions/stepfun/index.ts
|
|
8
7
|
function trimExplicitBaseUrl(ctx, providerId) {
|
|
@@ -34,20 +33,20 @@ function resolveDefaultBaseUrl(surface, region) {
|
|
|
34
33
|
if (surface === "plan") return region === "cn" ? STEPFUN_PLAN_CN_BASE_URL : STEPFUN_PLAN_INTL_BASE_URL;
|
|
35
34
|
return region === "cn" ? STEPFUN_STANDARD_CN_BASE_URL : STEPFUN_STANDARD_INTL_BASE_URL;
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
function resolveStepFunCatalog(ctx, params) {
|
|
38
37
|
const auth = ctx.resolveProviderAuth(params.providerId);
|
|
39
38
|
const apiKey = auth.apiKey ?? ctx.resolveProviderApiKey(params.providerId).apiKey;
|
|
40
39
|
if (!apiKey) return null;
|
|
41
40
|
const explicitBaseUrl = trimExplicitBaseUrl(ctx, params.providerId);
|
|
42
41
|
const region = inferRegionFromBaseUrl(explicitBaseUrl) ?? inferRegionFromExplicitBaseUrls(ctx) ?? inferRegionFromProfileId(auth.profileId) ?? inferRegionFromEnv(ctx.env);
|
|
43
42
|
const baseUrl = explicitBaseUrl ?? resolveDefaultBaseUrl(params.surface, region ?? "intl");
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
43
|
+
return { provider: params.surface === "plan" ? {
|
|
44
|
+
...buildStepFunPlanProvider(baseUrl),
|
|
45
|
+
apiKey
|
|
46
|
+
} : {
|
|
47
|
+
...buildStepFunProvider(baseUrl),
|
|
48
|
+
apiKey
|
|
49
|
+
} };
|
|
51
50
|
}
|
|
52
51
|
function resolveProfileIds(region) {
|
|
53
52
|
return region === "cn" ? ["stepfun:cn", "stepfun-plan:cn"] : ["stepfun:intl", "stepfun-plan:intl"];
|
|
@@ -118,10 +117,6 @@ var stepfun_default = definePluginEntry({
|
|
|
118
117
|
providerId: STEPFUN_PROVIDER_ID,
|
|
119
118
|
surface: "standard"
|
|
120
119
|
})
|
|
121
|
-
},
|
|
122
|
-
staticCatalog: {
|
|
123
|
-
order: "paired",
|
|
124
|
-
run: async () => ({ provider: buildStepFunProvider() })
|
|
125
120
|
}
|
|
126
121
|
});
|
|
127
122
|
api.registerProvider({
|
|
@@ -160,10 +155,6 @@ var stepfun_default = definePluginEntry({
|
|
|
160
155
|
providerId: STEPFUN_PLAN_PROVIDER_ID,
|
|
161
156
|
surface: "plan"
|
|
162
157
|
})
|
|
163
|
-
},
|
|
164
|
-
staticCatalog: {
|
|
165
|
-
order: "paired",
|
|
166
|
-
run: async () => ({ provider: buildStepFunPlanProvider() })
|
|
167
158
|
}
|
|
168
159
|
});
|
|
169
160
|
}
|
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 "
|
|
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 "./.setup/provider-catalog-D-r4WCiD.mjs";
|
|
2
2
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
//#region extensions/stepfun/onboard.ts
|
|
4
4
|
function createStepFunPresetAppliers(params) {
|
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 "
|
|
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 "./.setup/provider-catalog-D-r4WCiD.mjs";
|
|
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
|
@@ -25,46 +25,6 @@
|
|
|
25
25
|
"baseUrl": "https://api.stepfun.ai/v1",
|
|
26
26
|
"api": "openai-completions",
|
|
27
27
|
"models": [
|
|
28
|
-
{
|
|
29
|
-
"id": "step-3.7-flash",
|
|
30
|
-
"name": "Step 3.7 Flash",
|
|
31
|
-
"reasoning": true,
|
|
32
|
-
"input": ["text", "image"],
|
|
33
|
-
"thinkingLevelMap": {
|
|
34
|
-
"off": "low",
|
|
35
|
-
"minimal": "low",
|
|
36
|
-
"xhigh": "high",
|
|
37
|
-
"max": "high"
|
|
38
|
-
},
|
|
39
|
-
"contextWindow": 262144,
|
|
40
|
-
"maxTokens": 262144,
|
|
41
|
-
"cost": {
|
|
42
|
-
"input": 0.2,
|
|
43
|
-
"output": 1.15,
|
|
44
|
-
"cacheRead": 0.04,
|
|
45
|
-
"cacheWrite": 0
|
|
46
|
-
},
|
|
47
|
-
"compat": {
|
|
48
|
-
"supportsStore": false,
|
|
49
|
-
"supportsDeveloperRole": false,
|
|
50
|
-
"supportsUsageInStreaming": false,
|
|
51
|
-
"supportsReasoningEffort": true,
|
|
52
|
-
"supportsStrictMode": false,
|
|
53
|
-
"supportedReasoningEfforts": ["low", "medium", "high"],
|
|
54
|
-
"maxTokensField": "max_tokens",
|
|
55
|
-
"reasoningEffortMap": {
|
|
56
|
-
"off": "low",
|
|
57
|
-
"none": "low",
|
|
58
|
-
"minimal": "low",
|
|
59
|
-
"low": "low",
|
|
60
|
-
"medium": "medium",
|
|
61
|
-
"high": "high",
|
|
62
|
-
"xhigh": "high",
|
|
63
|
-
"adaptive": "high",
|
|
64
|
-
"max": "high"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
28
|
{
|
|
69
29
|
"id": "step-3.5-flash",
|
|
70
30
|
"name": "Step 3.5 Flash",
|
|
@@ -73,9 +33,9 @@
|
|
|
73
33
|
"contextWindow": 262144,
|
|
74
34
|
"maxTokens": 65536,
|
|
75
35
|
"cost": {
|
|
76
|
-
"input": 0
|
|
77
|
-
"output": 0
|
|
78
|
-
"cacheRead": 0
|
|
36
|
+
"input": 0,
|
|
37
|
+
"output": 0,
|
|
38
|
+
"cacheRead": 0,
|
|
79
39
|
"cacheWrite": 0
|
|
80
40
|
}
|
|
81
41
|
}
|
|
@@ -85,46 +45,6 @@
|
|
|
85
45
|
"baseUrl": "https://api.stepfun.ai/step_plan/v1",
|
|
86
46
|
"api": "openai-completions",
|
|
87
47
|
"models": [
|
|
88
|
-
{
|
|
89
|
-
"id": "step-3.7-flash",
|
|
90
|
-
"name": "Step 3.7 Flash",
|
|
91
|
-
"reasoning": true,
|
|
92
|
-
"input": ["text", "image"],
|
|
93
|
-
"thinkingLevelMap": {
|
|
94
|
-
"off": "low",
|
|
95
|
-
"minimal": "low",
|
|
96
|
-
"xhigh": "high",
|
|
97
|
-
"max": "high"
|
|
98
|
-
},
|
|
99
|
-
"contextWindow": 262144,
|
|
100
|
-
"maxTokens": 262144,
|
|
101
|
-
"cost": {
|
|
102
|
-
"input": 0,
|
|
103
|
-
"output": 0,
|
|
104
|
-
"cacheRead": 0,
|
|
105
|
-
"cacheWrite": 0
|
|
106
|
-
},
|
|
107
|
-
"compat": {
|
|
108
|
-
"supportsStore": false,
|
|
109
|
-
"supportsDeveloperRole": false,
|
|
110
|
-
"supportsUsageInStreaming": false,
|
|
111
|
-
"supportsReasoningEffort": true,
|
|
112
|
-
"supportsStrictMode": false,
|
|
113
|
-
"supportedReasoningEfforts": ["low", "medium", "high"],
|
|
114
|
-
"maxTokensField": "max_tokens",
|
|
115
|
-
"reasoningEffortMap": {
|
|
116
|
-
"off": "low",
|
|
117
|
-
"none": "low",
|
|
118
|
-
"minimal": "low",
|
|
119
|
-
"low": "low",
|
|
120
|
-
"medium": "medium",
|
|
121
|
-
"high": "high",
|
|
122
|
-
"xhigh": "high",
|
|
123
|
-
"adaptive": "high",
|
|
124
|
-
"max": "high"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
48
|
{
|
|
129
49
|
"id": "step-3.5-flash",
|
|
130
50
|
"name": "Step 3.5 Flash",
|
|
@@ -157,8 +77,8 @@
|
|
|
157
77
|
}
|
|
158
78
|
},
|
|
159
79
|
"discovery": {
|
|
160
|
-
"stepfun": "
|
|
161
|
-
"stepfun-plan": "
|
|
80
|
+
"stepfun": "static",
|
|
81
|
+
"stepfun-plan": "static"
|
|
162
82
|
}
|
|
163
83
|
},
|
|
164
84
|
"providerAuthChoices": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/stepfun-provider",
|
|
3
|
-
"version": "2026.7.
|
|
3
|
+
"version": "2026.7.34",
|
|
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.
|
|
21
|
+
"pluginApi": ">=2026.7.34"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.7.
|
|
24
|
+
"openclawVersion": "2026.7.34",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.7.
|
|
41
|
+
"openclaw": ">=2026.7.34"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
|
-
//#region extensions/stepfun/openclaw.plugin.json
|
|
3
|
-
var modelCatalog = {
|
|
4
|
-
"providers": {
|
|
5
|
-
"stepfun": {
|
|
6
|
-
"baseUrl": "https://api.stepfun.ai/v1",
|
|
7
|
-
"api": "openai-completions",
|
|
8
|
-
"models": [{
|
|
9
|
-
"id": "step-3.7-flash",
|
|
10
|
-
"name": "Step 3.7 Flash",
|
|
11
|
-
"reasoning": true,
|
|
12
|
-
"input": ["text", "image"],
|
|
13
|
-
"thinkingLevelMap": {
|
|
14
|
-
"off": "low",
|
|
15
|
-
"minimal": "low",
|
|
16
|
-
"xhigh": "high",
|
|
17
|
-
"max": "high"
|
|
18
|
-
},
|
|
19
|
-
"contextWindow": 262144,
|
|
20
|
-
"maxTokens": 262144,
|
|
21
|
-
"cost": {
|
|
22
|
-
"input": .2,
|
|
23
|
-
"output": 1.15,
|
|
24
|
-
"cacheRead": .04,
|
|
25
|
-
"cacheWrite": 0
|
|
26
|
-
},
|
|
27
|
-
"compat": {
|
|
28
|
-
"supportsStore": false,
|
|
29
|
-
"supportsDeveloperRole": false,
|
|
30
|
-
"supportsUsageInStreaming": false,
|
|
31
|
-
"supportsReasoningEffort": true,
|
|
32
|
-
"supportsStrictMode": false,
|
|
33
|
-
"supportedReasoningEfforts": [
|
|
34
|
-
"low",
|
|
35
|
-
"medium",
|
|
36
|
-
"high"
|
|
37
|
-
],
|
|
38
|
-
"maxTokensField": "max_tokens",
|
|
39
|
-
"reasoningEffortMap": {
|
|
40
|
-
"off": "low",
|
|
41
|
-
"none": "low",
|
|
42
|
-
"minimal": "low",
|
|
43
|
-
"low": "low",
|
|
44
|
-
"medium": "medium",
|
|
45
|
-
"high": "high",
|
|
46
|
-
"xhigh": "high",
|
|
47
|
-
"adaptive": "high",
|
|
48
|
-
"max": "high"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}, {
|
|
52
|
-
"id": "step-3.5-flash",
|
|
53
|
-
"name": "Step 3.5 Flash",
|
|
54
|
-
"reasoning": true,
|
|
55
|
-
"input": ["text"],
|
|
56
|
-
"contextWindow": 262144,
|
|
57
|
-
"maxTokens": 65536,
|
|
58
|
-
"cost": {
|
|
59
|
-
"input": .1,
|
|
60
|
-
"output": .3,
|
|
61
|
-
"cacheRead": .02,
|
|
62
|
-
"cacheWrite": 0
|
|
63
|
-
}
|
|
64
|
-
}]
|
|
65
|
-
},
|
|
66
|
-
"stepfun-plan": {
|
|
67
|
-
"baseUrl": "https://api.stepfun.ai/step_plan/v1",
|
|
68
|
-
"api": "openai-completions",
|
|
69
|
-
"models": [
|
|
70
|
-
{
|
|
71
|
-
"id": "step-3.7-flash",
|
|
72
|
-
"name": "Step 3.7 Flash",
|
|
73
|
-
"reasoning": true,
|
|
74
|
-
"input": ["text", "image"],
|
|
75
|
-
"thinkingLevelMap": {
|
|
76
|
-
"off": "low",
|
|
77
|
-
"minimal": "low",
|
|
78
|
-
"xhigh": "high",
|
|
79
|
-
"max": "high"
|
|
80
|
-
},
|
|
81
|
-
"contextWindow": 262144,
|
|
82
|
-
"maxTokens": 262144,
|
|
83
|
-
"cost": {
|
|
84
|
-
"input": 0,
|
|
85
|
-
"output": 0,
|
|
86
|
-
"cacheRead": 0,
|
|
87
|
-
"cacheWrite": 0
|
|
88
|
-
},
|
|
89
|
-
"compat": {
|
|
90
|
-
"supportsStore": false,
|
|
91
|
-
"supportsDeveloperRole": false,
|
|
92
|
-
"supportsUsageInStreaming": false,
|
|
93
|
-
"supportsReasoningEffort": true,
|
|
94
|
-
"supportsStrictMode": false,
|
|
95
|
-
"supportedReasoningEfforts": [
|
|
96
|
-
"low",
|
|
97
|
-
"medium",
|
|
98
|
-
"high"
|
|
99
|
-
],
|
|
100
|
-
"maxTokensField": "max_tokens",
|
|
101
|
-
"reasoningEffortMap": {
|
|
102
|
-
"off": "low",
|
|
103
|
-
"none": "low",
|
|
104
|
-
"minimal": "low",
|
|
105
|
-
"low": "low",
|
|
106
|
-
"medium": "medium",
|
|
107
|
-
"high": "high",
|
|
108
|
-
"xhigh": "high",
|
|
109
|
-
"adaptive": "high",
|
|
110
|
-
"max": "high"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"id": "step-3.5-flash",
|
|
116
|
-
"name": "Step 3.5 Flash",
|
|
117
|
-
"reasoning": true,
|
|
118
|
-
"input": ["text"],
|
|
119
|
-
"contextWindow": 262144,
|
|
120
|
-
"maxTokens": 65536,
|
|
121
|
-
"cost": {
|
|
122
|
-
"input": 0,
|
|
123
|
-
"output": 0,
|
|
124
|
-
"cacheRead": 0,
|
|
125
|
-
"cacheWrite": 0
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"id": "step-3.5-flash-2603",
|
|
130
|
-
"name": "Step 3.5 Flash 2603",
|
|
131
|
-
"reasoning": true,
|
|
132
|
-
"input": ["text"],
|
|
133
|
-
"contextWindow": 262144,
|
|
134
|
-
"maxTokens": 65536,
|
|
135
|
-
"cost": {
|
|
136
|
-
"input": 0,
|
|
137
|
-
"output": 0,
|
|
138
|
-
"cacheRead": 0,
|
|
139
|
-
"cacheWrite": 0
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
]
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"discovery": {
|
|
146
|
-
"stepfun": "refreshable",
|
|
147
|
-
"stepfun-plan": "refreshable"
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region extensions/stepfun/provider-catalog.ts
|
|
152
|
-
const STEPFUN_PROVIDER_ID = "stepfun";
|
|
153
|
-
const STEPFUN_PLAN_PROVIDER_ID = "stepfun-plan";
|
|
154
|
-
const STEPFUN_STANDARD_CN_BASE_URL = "https://api.stepfun.com/v1";
|
|
155
|
-
const STEPFUN_STANDARD_INTL_BASE_URL = "https://api.stepfun.ai/v1";
|
|
156
|
-
const STEPFUN_PLAN_CN_BASE_URL = "https://api.stepfun.com/step_plan/v1";
|
|
157
|
-
const STEPFUN_PLAN_INTL_BASE_URL = "https://api.stepfun.ai/step_plan/v1";
|
|
158
|
-
const STEPFUN_DEFAULT_MODEL_ID = "step-3.5-flash";
|
|
159
|
-
const STEPFUN_DEFAULT_MODEL_REF = `${STEPFUN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`;
|
|
160
|
-
const STEPFUN_PLAN_DEFAULT_MODEL_REF = `${STEPFUN_PLAN_PROVIDER_ID}/${STEPFUN_DEFAULT_MODEL_ID}`;
|
|
161
|
-
function buildStepFunManifestProvider(providerId, baseUrl) {
|
|
162
|
-
const provider = buildManifestModelProviderConfig({
|
|
163
|
-
providerId,
|
|
164
|
-
catalog: modelCatalog.providers[providerId]
|
|
165
|
-
});
|
|
166
|
-
return provider.baseUrl === baseUrl ? provider : {
|
|
167
|
-
...provider,
|
|
168
|
-
baseUrl
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
function buildStepFunProvider(baseUrl = STEPFUN_STANDARD_INTL_BASE_URL) {
|
|
172
|
-
return buildStepFunManifestProvider(STEPFUN_PROVIDER_ID, baseUrl);
|
|
173
|
-
}
|
|
174
|
-
function buildStepFunPlanProvider(baseUrl = STEPFUN_PLAN_INTL_BASE_URL) {
|
|
175
|
-
return buildStepFunManifestProvider(STEPFUN_PLAN_PROVIDER_ID, baseUrl);
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
export { STEPFUN_PLAN_PROVIDER_ID as a, STEPFUN_STANDARD_INTL_BASE_URL as c, STEPFUN_PLAN_INTL_BASE_URL as i, buildStepFunPlanProvider as l, STEPFUN_PLAN_CN_BASE_URL as n, STEPFUN_PROVIDER_ID as o, STEPFUN_PLAN_DEFAULT_MODEL_REF as r, STEPFUN_STANDARD_CN_BASE_URL as s, STEPFUN_DEFAULT_MODEL_REF as t, buildStepFunProvider as u };
|