feat(opencode): add StepFun Step Plan provider preset (#1668)

Add StepFun Step Plan (阶跃星辰编程计划) as an OpenCode provider preset.

StepFun Step Plan is a subscription-based coding AI service that uses a
dedicated API endpoint separate from the standard StepFun provider.

- Base URL: https://api.stepfun.com/step_plan/v1
- Model: step-3.5-flash (196B MoE, optimized for agent and coding tasks)
- Category: cn_official
- Supports tool_call, reasoning, temperature control

Ref: https://platform.stepfun.com/docs/zh/step-plan/overview
Made-with: Cursor

Co-authored-by: sky-wang-salvation <sky-wang-salvation@users.noreply.github.com>
This commit is contained in:
Sky
2026-03-25 21:22:05 +08:00
committed by GitHub
parent 8c42ec48ef
commit 90812e7f3a

View File

@@ -514,6 +514,33 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "StepFun Step Plan",
websiteUrl: "https://platform.stepfun.com/docs/zh/step-plan/overview",
apiKeyUrl: "https://platform.stepfun.com/interface-key",
settingsConfig: {
npm: "@ai-sdk/openai-compatible",
name: "StepFun Step Plan",
options: {
baseURL: "https://api.stepfun.com/step_plan/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"step-3.5-flash": { name: "Step 3.5 Flash" },
},
},
category: "cn_official",
icon: "stepfun",
iconColor: "#005AFF",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "step-...",
editorValue: "",
},
},
},
{
name: "ModelScope",
websiteUrl: "https://modelscope.cn",