跳转到内容

StepFun

OpenClaw 包含一个捆绑的 StepFun 提供商插件,具有两个提供商 ID:

  • stepfun 用于标准端点
  • stepfun-plan 用于 Step Plan 端点

内置目录目前因界面而异:

  • 标准版: step-3.5-flash
  • Step Plan: step-3.5-flashstep-3.5-flash-2603
  • 中国标准端点: https://api.stepfun.com/v1
  • 全球标准端点: https://api.stepfun.ai/v1
  • 中国 Step Plan 端点: https://api.stepfun.com/step_plan/v1
  • 全球 Step Plan 端点: https://api.stepfun.ai/step_plan/v1
  • Auth 环境变量: STEPFUN_API_KEY

请将中国密钥用于 .com 端点,将全球密钥用于 .ai 端点。

交互式设置:

Terminal window
openclaw onboard

选择以下身份验证选项之一:

  • stepfun-standard-api-key-cn
  • stepfun-standard-api-key-intl
  • stepfun-plan-api-key-cn
  • stepfun-plan-api-key-intl

非交互式示例:

Terminal window
openclaw onboard --auth-choice stepfun-standard-api-key-intl --stepfun-api-key "$STEPFUN_API_KEY"
openclaw onboard --auth-choice stepfun-plan-api-key-intl --stepfun-api-key "$STEPFUN_API_KEY"
  • 标准默认模型: stepfun/step-3.5-flash
  • Step Plan 默认模型: stepfun-plan/step-3.5-flash
  • Step Plan 备选模型: stepfun-plan/step-3.5-flash-2603

标准版 (stepfun):

模型参考上下文最大输出备注
stepfun/step-3.5-flash262,14465,536默认标准模型

Step Plan (stepfun-plan):

模型参考上下文最大输出备注
stepfun-plan/step-3.5-flash262,14465,536默认 Step Plan 模型
stepfun-plan/step-3.5-flash-2603262,14465,536额外的 Step Plan 模型

标准提供商:

{
env: { STEPFUN_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "stepfun/step-3.5-flash" } } },
models: {
mode: "merge",
providers: {
stepfun: {
baseUrl: "https://api.stepfun.ai/v1",
api: "openai-completions",
apiKey: "${STEPFUN_API_KEY}",
models: [
{
id: "step-3.5-flash",
name: "Step 3.5 Flash",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
],
},
},
},
}

Step Plan 提供商:

{
env: { STEPFUN_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "stepfun-plan/step-3.5-flash" } } },
models: {
mode: "merge",
providers: {
"stepfun-plan": {
baseUrl: "https://api.stepfun.ai/step_plan/v1",
api: "openai-completions",
apiKey: "${STEPFUN_API_KEY}",
models: [
{
id: "step-3.5-flash",
name: "Step 3.5 Flash",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
{
id: "step-3.5-flash-2603",
name: "Step 3.5 Flash 2603",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
],
},
},
},
}
  • 该提供商与 OpenClaw 捆绑在一起,因此没有单独的插件安装步骤。
  • step-3.5-flash-2603 目前仅在 stepfun-plan 上可用。
  • 单一的身份验证流程会为 stepfunstepfun-plan 写入区域匹配的配置文件,因此可以同时发现这两个表面。
  • 使用 openclaw models listopenclaw models set <provider/model> 检查或切换模型。
  • 有关更广泛的提供商概述,请参阅 Model providers