mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
* feat(stepfun): add step-3.7-flash model and make it default * fix(stepfun): set step-3.7-flash cacheRead cost to 0.04 * fix(stepfun): raise step-3.7-flash maxTokens to context limit Output was artificially capped at 65536; StepFun docs set max_tokens default to INF, bounded only by the 256K context window. Raise step-3.7-flash maxTokens to 262144 on both stepfun and stepfun-plan, matching contextWindow. Per models.dev anomalyco/models.dev#1903. step-3.5-flash entries unchanged. * fix(stepfun): zero step-plan step-3.7-flash cost for plan billing Step Plan endpoint bills per subscription plan, not per token, matching the sibling stepfun-plan/step-3.5-flash and step-3.5-flash-2603 entries which already carry zero cost. Standard stepfun/step-3.7-flash keeps its per-token rate. Per models.dev anomalyco/models.dev#1903, whose step-plan providers omit cost entirely. * docs(changelog): note StepFun 3.7 support * style(stepfun): format provider table * fix(stepfun): forward reasoning effort * fix(stepfun): scope reasoning compat to 3.7 * test(stepfun): keep 3.5 reasoning compat unchanged * fix(stepfun): carry off fallback through agent turns * fix(stepfun): use documented token limit field * fix(stepfun): match chat completions contract * chore(stepfun): keep changelog release-owned --------- Co-authored-by: Tianning Li <litianning@stepfun.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
231 lines
6.8 KiB
JSON
231 lines
6.8 KiB
JSON
{
|
|
"id": "stepfun",
|
|
"name": "StepFun",
|
|
"activation": {
|
|
"onStartup": false
|
|
},
|
|
"enabledByDefault": true,
|
|
"providers": ["stepfun", "stepfun-plan"],
|
|
"autoEnableWhenConfiguredProviders": ["stepfun", "stepfun-plan"],
|
|
"setup": {
|
|
"providers": [
|
|
{
|
|
"id": "stepfun",
|
|
"envVars": ["STEPFUN_API_KEY"]
|
|
},
|
|
{
|
|
"id": "stepfun-plan",
|
|
"envVars": ["STEPFUN_API_KEY"]
|
|
}
|
|
]
|
|
},
|
|
"modelCatalog": {
|
|
"providers": {
|
|
"stepfun": {
|
|
"baseUrl": "https://api.stepfun.ai/v1",
|
|
"api": "openai-completions",
|
|
"models": [
|
|
{
|
|
"id": "step-3.7-flash",
|
|
"name": "Step 3.7 Flash",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"thinkingLevelMap": {
|
|
"off": "low",
|
|
"minimal": "low",
|
|
"xhigh": "high",
|
|
"max": "high"
|
|
},
|
|
"contextWindow": 262144,
|
|
"maxTokens": 262144,
|
|
"cost": {
|
|
"input": 0.2,
|
|
"output": 1.15,
|
|
"cacheRead": 0.04,
|
|
"cacheWrite": 0
|
|
},
|
|
"compat": {
|
|
"supportsStore": false,
|
|
"supportsDeveloperRole": false,
|
|
"supportsUsageInStreaming": false,
|
|
"supportsReasoningEffort": true,
|
|
"supportsStrictMode": false,
|
|
"supportedReasoningEfforts": ["low", "medium", "high"],
|
|
"maxTokensField": "max_tokens",
|
|
"reasoningEffortMap": {
|
|
"off": "low",
|
|
"none": "low",
|
|
"minimal": "low",
|
|
"low": "low",
|
|
"medium": "medium",
|
|
"high": "high",
|
|
"xhigh": "high",
|
|
"adaptive": "high",
|
|
"max": "high"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "step-3.5-flash",
|
|
"name": "Step 3.5 Flash",
|
|
"reasoning": true,
|
|
"input": ["text"],
|
|
"contextWindow": 262144,
|
|
"maxTokens": 65536,
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cacheRead": 0,
|
|
"cacheWrite": 0
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"stepfun-plan": {
|
|
"baseUrl": "https://api.stepfun.ai/step_plan/v1",
|
|
"api": "openai-completions",
|
|
"models": [
|
|
{
|
|
"id": "step-3.7-flash",
|
|
"name": "Step 3.7 Flash",
|
|
"reasoning": true,
|
|
"input": ["text", "image"],
|
|
"thinkingLevelMap": {
|
|
"off": "low",
|
|
"minimal": "low",
|
|
"xhigh": "high",
|
|
"max": "high"
|
|
},
|
|
"contextWindow": 262144,
|
|
"maxTokens": 262144,
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cacheRead": 0,
|
|
"cacheWrite": 0
|
|
},
|
|
"compat": {
|
|
"supportsStore": false,
|
|
"supportsDeveloperRole": false,
|
|
"supportsUsageInStreaming": false,
|
|
"supportsReasoningEffort": true,
|
|
"supportsStrictMode": false,
|
|
"supportedReasoningEfforts": ["low", "medium", "high"],
|
|
"maxTokensField": "max_tokens",
|
|
"reasoningEffortMap": {
|
|
"off": "low",
|
|
"none": "low",
|
|
"minimal": "low",
|
|
"low": "low",
|
|
"medium": "medium",
|
|
"high": "high",
|
|
"xhigh": "high",
|
|
"adaptive": "high",
|
|
"max": "high"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "step-3.5-flash",
|
|
"name": "Step 3.5 Flash",
|
|
"reasoning": true,
|
|
"input": ["text"],
|
|
"contextWindow": 262144,
|
|
"maxTokens": 65536,
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cacheRead": 0,
|
|
"cacheWrite": 0
|
|
}
|
|
},
|
|
{
|
|
"id": "step-3.5-flash-2603",
|
|
"name": "Step 3.5 Flash 2603",
|
|
"reasoning": true,
|
|
"input": ["text"],
|
|
"contextWindow": 262144,
|
|
"maxTokens": 65536,
|
|
"cost": {
|
|
"input": 0,
|
|
"output": 0,
|
|
"cacheRead": 0,
|
|
"cacheWrite": 0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"discovery": {
|
|
"stepfun": "static",
|
|
"stepfun-plan": "static"
|
|
}
|
|
},
|
|
"providerAuthChoices": [
|
|
{
|
|
"provider": "stepfun",
|
|
"method": "standard-api-key-cn",
|
|
"choiceId": "stepfun-standard-api-key-cn",
|
|
"appGuidedSecret": true,
|
|
"choiceLabel": "StepFun Standard API key (China)",
|
|
"choiceHint": "Endpoint: api.stepfun.com/v1",
|
|
"groupId": "stepfun",
|
|
"groupLabel": "StepFun",
|
|
"groupHint": "Standard / Step Plan (China / Global)",
|
|
"optionKey": "stepfunApiKey",
|
|
"cliFlag": "--stepfun-api-key",
|
|
"cliOption": "--stepfun-api-key <key>",
|
|
"cliDescription": "StepFun API key"
|
|
},
|
|
{
|
|
"provider": "stepfun",
|
|
"method": "standard-api-key-intl",
|
|
"choiceId": "stepfun-standard-api-key-intl",
|
|
"appGuidedSecret": true,
|
|
"choiceLabel": "StepFun Standard API key (Global/Intl)",
|
|
"choiceHint": "Endpoint: api.stepfun.ai/v1",
|
|
"groupId": "stepfun",
|
|
"groupLabel": "StepFun",
|
|
"groupHint": "Standard / Step Plan (China / Global)",
|
|
"optionKey": "stepfunApiKey",
|
|
"cliFlag": "--stepfun-api-key",
|
|
"cliOption": "--stepfun-api-key <key>",
|
|
"cliDescription": "StepFun API key"
|
|
},
|
|
{
|
|
"provider": "stepfun-plan",
|
|
"method": "plan-api-key-cn",
|
|
"choiceId": "stepfun-plan-api-key-cn",
|
|
"appGuidedSecret": true,
|
|
"choiceLabel": "StepFun Step Plan API key (China)",
|
|
"choiceHint": "Endpoint: api.stepfun.com/step_plan/v1",
|
|
"groupId": "stepfun",
|
|
"groupLabel": "StepFun",
|
|
"groupHint": "Standard / Step Plan (China / Global)",
|
|
"optionKey": "stepfunApiKey",
|
|
"cliFlag": "--stepfun-api-key",
|
|
"cliOption": "--stepfun-api-key <key>",
|
|
"cliDescription": "StepFun API key"
|
|
},
|
|
{
|
|
"provider": "stepfun-plan",
|
|
"method": "plan-api-key-intl",
|
|
"choiceId": "stepfun-plan-api-key-intl",
|
|
"appGuidedSecret": true,
|
|
"choiceLabel": "StepFun Step Plan API key (Global/Intl)",
|
|
"choiceHint": "Endpoint: api.stepfun.ai/step_plan/v1",
|
|
"groupId": "stepfun",
|
|
"groupLabel": "StepFun",
|
|
"groupHint": "Standard / Step Plan (China / Global)",
|
|
"optionKey": "stepfunApiKey",
|
|
"cliFlag": "--stepfun-api-key",
|
|
"cliOption": "--stepfun-api-key <key>",
|
|
"cliDescription": "StepFun API key"
|
|
}
|
|
],
|
|
"configSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {}
|
|
}
|
|
}
|