Add StepFun and StepFun en Step Plan presets (#2155)

* Add StepFun CN and EN presets

* Add StepFun 2603 model presets

* Make StepFun 2603 the default model

* Revert StepFun branding assets
This commit is contained in:
hengm3467
2026-04-21 10:46:26 +08:00
committed by GitHub
parent 61bfc29d82
commit 1b345fbefb
3 changed files with 134 additions and 24 deletions
+45 -6
View File
@@ -62,6 +62,11 @@ export const OPENCODE_PRESET_MODEL_VARIANTS: Record<
outputLimit: 262144,
modalities: { input: ["text", "image", "video"], output: ["text"] },
},
{
id: "step-3.5-flash-2603",
name: "Step 3.5 Flash 2603",
contextLimit: 262144,
},
{
id: "step-3.5-flash",
name: "Step 3.5 Flash",
@@ -513,28 +518,62 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
{
name: "StepFun",
websiteUrl: "https://platform.stepfun.ai",
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
websiteUrl: "https://platform.stepfun.com/step-plan",
apiKeyUrl: "https://platform.stepfun.com/interface-key",
settingsConfig: {
npm: "@ai-sdk/openai-compatible",
name: "StepFun",
options: {
baseURL: "https://api.stepfun.ai/v1",
baseURL: "https://api.stepfun.com/step_plan/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"step-3.5-flash-2603": { name: "Step 3.5 Flash 2603" },
"step-3.5-flash": { name: "Step 3.5 Flash" },
},
},
category: "cn_official",
icon: "stepfun",
iconColor: "#005AFF",
iconColor: "#16D6D2",
templateValues: {
baseURL: {
label: "Base URL",
placeholder: "https://api.stepfun.ai/v1",
defaultValue: "https://api.stepfun.ai/v1",
placeholder: "https://api.stepfun.com/step_plan/v1",
defaultValue: "https://api.stepfun.com/step_plan/v1",
editorValue: "",
},
apiKey: {
label: "API Key",
placeholder: "step-...",
editorValue: "",
},
},
},
{
name: "StepFun en",
websiteUrl: "https://platform.stepfun.ai/step-plan",
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
settingsConfig: {
npm: "@ai-sdk/openai-compatible",
name: "StepFun en",
options: {
baseURL: "https://api.stepfun.ai/step_plan/v1",
apiKey: "",
},
models: {
"step-3.5-flash-2603": { name: "Step 3.5 Flash 2603" },
"step-3.5-flash": { name: "Step 3.5 Flash" },
},
},
category: "cn_official",
icon: "stepfun",
iconColor: "#16D6D2",
templateValues: {
baseURL: {
label: "Base URL",
placeholder: "https://api.stepfun.ai/step_plan/v1",
defaultValue: "https://api.stepfun.ai/step_plan/v1",
editorValue: "",
},
apiKey: {