mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 19:45:34 +08:00
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:
@@ -234,23 +234,41 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "StepFun",
|
name: "StepFun",
|
||||||
websiteUrl: "https://platform.stepfun.ai",
|
websiteUrl: "https://platform.stepfun.com/step-plan",
|
||||||
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
apiKeyUrl: "https://platform.stepfun.com/interface-key",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://api.stepfun.ai/v1",
|
ANTHROPIC_BASE_URL: "https://api.stepfun.com/step_plan",
|
||||||
ANTHROPIC_AUTH_TOKEN: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
ANTHROPIC_MODEL: "step-3.5-flash",
|
ANTHROPIC_MODEL: "step-3.5-flash-2603",
|
||||||
ANTHROPIC_DEFAULT_HAIKU_MODEL: "step-3.5-flash",
|
ANTHROPIC_DEFAULT_HAIKU_MODEL: "step-3.5-flash-2603",
|
||||||
ANTHROPIC_DEFAULT_SONNET_MODEL: "step-3.5-flash",
|
ANTHROPIC_DEFAULT_SONNET_MODEL: "step-3.5-flash-2603",
|
||||||
ANTHROPIC_DEFAULT_OPUS_MODEL: "step-3.5-flash",
|
ANTHROPIC_DEFAULT_OPUS_MODEL: "step-3.5-flash-2603",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
endpointCandidates: ["https://api.stepfun.ai/v1"],
|
endpointCandidates: ["https://api.stepfun.com/step_plan"],
|
||||||
apiFormat: "openai_chat",
|
|
||||||
icon: "stepfun",
|
icon: "stepfun",
|
||||||
iconColor: "#005AFF",
|
iconColor: "#16D6D2",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "StepFun en",
|
||||||
|
websiteUrl: "https://platform.stepfun.ai/step-plan",
|
||||||
|
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
||||||
|
settingsConfig: {
|
||||||
|
env: {
|
||||||
|
ANTHROPIC_BASE_URL: "https://api.stepfun.ai/step_plan",
|
||||||
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
|
ANTHROPIC_MODEL: "step-3.5-flash-2603",
|
||||||
|
ANTHROPIC_DEFAULT_HAIKU_MODEL: "step-3.5-flash-2603",
|
||||||
|
ANTHROPIC_DEFAULT_SONNET_MODEL: "step-3.5-flash-2603",
|
||||||
|
ANTHROPIC_DEFAULT_OPUS_MODEL: "step-3.5-flash-2603",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
category: "cn_official",
|
||||||
|
endpointCandidates: ["https://api.stepfun.ai/step_plan"],
|
||||||
|
icon: "stepfun",
|
||||||
|
iconColor: "#16D6D2",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "ModelScope",
|
name: "ModelScope",
|
||||||
|
|||||||
@@ -341,13 +341,18 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "StepFun",
|
name: "StepFun",
|
||||||
websiteUrl: "https://platform.stepfun.ai",
|
websiteUrl: "https://platform.stepfun.com/step-plan",
|
||||||
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
apiKeyUrl: "https://platform.stepfun.com/interface-key",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
baseUrl: "https://api.stepfun.ai/v1",
|
baseUrl: "https://api.stepfun.com/step_plan/v1",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
api: "openai-completions",
|
api: "openai-completions",
|
||||||
models: [
|
models: [
|
||||||
|
{
|
||||||
|
id: "step-3.5-flash-2603",
|
||||||
|
name: "Step 3.5 Flash 2603",
|
||||||
|
contextWindow: 262144,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "step-3.5-flash",
|
id: "step-3.5-flash",
|
||||||
name: "Step 3.5 Flash",
|
name: "Step 3.5 Flash",
|
||||||
@@ -357,12 +362,12 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
icon: "stepfun",
|
icon: "stepfun",
|
||||||
iconColor: "#005AFF",
|
iconColor: "#16D6D2",
|
||||||
templateValues: {
|
templateValues: {
|
||||||
baseUrl: {
|
baseUrl: {
|
||||||
label: "Base URL",
|
label: "Base URL",
|
||||||
placeholder: "https://api.stepfun.ai/v1",
|
placeholder: "https://api.stepfun.com/step_plan/v1",
|
||||||
defaultValue: "https://api.stepfun.ai/v1",
|
defaultValue: "https://api.stepfun.com/step_plan/v1",
|
||||||
editorValue: "",
|
editorValue: "",
|
||||||
},
|
},
|
||||||
apiKey: {
|
apiKey: {
|
||||||
@@ -372,8 +377,56 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
suggestedDefaults: {
|
suggestedDefaults: {
|
||||||
model: { primary: "stepfun/step-3.5-flash" },
|
model: { primary: "stepfun/step-3.5-flash-2603" },
|
||||||
modelCatalog: { "stepfun/step-3.5-flash": { alias: "StepFun" } },
|
modelCatalog: {
|
||||||
|
"stepfun/step-3.5-flash-2603": { alias: "StepFun" },
|
||||||
|
"stepfun/step-3.5-flash": { alias: "StepFun Flash" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "StepFun en",
|
||||||
|
websiteUrl: "https://platform.stepfun.ai/step-plan",
|
||||||
|
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
||||||
|
settingsConfig: {
|
||||||
|
baseUrl: "https://api.stepfun.ai/step_plan/v1",
|
||||||
|
apiKey: "",
|
||||||
|
api: "openai-completions",
|
||||||
|
models: [
|
||||||
|
{
|
||||||
|
id: "step-3.5-flash-2603",
|
||||||
|
name: "Step 3.5 Flash 2603",
|
||||||
|
contextWindow: 262144,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "step-3.5-flash",
|
||||||
|
name: "Step 3.5 Flash",
|
||||||
|
contextWindow: 262144,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
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: {
|
||||||
|
label: "API Key",
|
||||||
|
placeholder: "step-...",
|
||||||
|
editorValue: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
suggestedDefaults: {
|
||||||
|
model: { primary: "stepfun-en/step-3.5-flash-2603" },
|
||||||
|
modelCatalog: {
|
||||||
|
"stepfun-en/step-3.5-flash-2603": { alias: "StepFun" },
|
||||||
|
"stepfun-en/step-3.5-flash": { alias: "StepFun Flash" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ export const OPENCODE_PRESET_MODEL_VARIANTS: Record<
|
|||||||
outputLimit: 262144,
|
outputLimit: 262144,
|
||||||
modalities: { input: ["text", "image", "video"], output: ["text"] },
|
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",
|
id: "step-3.5-flash",
|
||||||
name: "Step 3.5 Flash",
|
name: "Step 3.5 Flash",
|
||||||
@@ -513,28 +518,62 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "StepFun",
|
name: "StepFun",
|
||||||
websiteUrl: "https://platform.stepfun.ai",
|
websiteUrl: "https://platform.stepfun.com/step-plan",
|
||||||
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
apiKeyUrl: "https://platform.stepfun.com/interface-key",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
npm: "@ai-sdk/openai-compatible",
|
npm: "@ai-sdk/openai-compatible",
|
||||||
name: "StepFun",
|
name: "StepFun",
|
||||||
options: {
|
options: {
|
||||||
baseURL: "https://api.stepfun.ai/v1",
|
baseURL: "https://api.stepfun.com/step_plan/v1",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
setCacheKey: true,
|
setCacheKey: true,
|
||||||
},
|
},
|
||||||
models: {
|
models: {
|
||||||
|
"step-3.5-flash-2603": { name: "Step 3.5 Flash 2603" },
|
||||||
"step-3.5-flash": { name: "Step 3.5 Flash" },
|
"step-3.5-flash": { name: "Step 3.5 Flash" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
icon: "stepfun",
|
icon: "stepfun",
|
||||||
iconColor: "#005AFF",
|
iconColor: "#16D6D2",
|
||||||
templateValues: {
|
templateValues: {
|
||||||
baseURL: {
|
baseURL: {
|
||||||
label: "Base URL",
|
label: "Base URL",
|
||||||
placeholder: "https://api.stepfun.ai/v1",
|
placeholder: "https://api.stepfun.com/step_plan/v1",
|
||||||
defaultValue: "https://api.stepfun.ai/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: "",
|
editorValue: "",
|
||||||
},
|
},
|
||||||
apiKey: {
|
apiKey: {
|
||||||
|
|||||||
Reference in New Issue
Block a user