mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-04-03 14:36:44 +08:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user