mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 60e0263cc0 |
@@ -192,7 +192,7 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://api.stepfun.ai/v1",
|
ANTHROPIC_BASE_URL: "https://api.stepfun.com/v1",
|
||||||
ANTHROPIC_AUTH_TOKEN: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
ANTHROPIC_MODEL: "step-3.5-flash",
|
ANTHROPIC_MODEL: "step-3.5-flash",
|
||||||
ANTHROPIC_DEFAULT_HAIKU_MODEL: "step-3.5-flash",
|
ANTHROPIC_DEFAULT_HAIKU_MODEL: "step-3.5-flash",
|
||||||
@@ -201,7 +201,7 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
category: "cn_official",
|
category: "cn_official",
|
||||||
endpointCandidates: ["https://api.stepfun.ai/v1"],
|
endpointCandidates: ["https://api.stepfun.com/v1"],
|
||||||
apiFormat: "openai_chat",
|
apiFormat: "openai_chat",
|
||||||
icon: "stepfun",
|
icon: "stepfun",
|
||||||
iconColor: "#005AFF",
|
iconColor: "#005AFF",
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
websiteUrl: "https://platform.stepfun.ai",
|
websiteUrl: "https://platform.stepfun.ai",
|
||||||
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
baseUrl: "https://api.stepfun.ai/v1",
|
baseUrl: "https://api.stepfun.com/v1",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
api: "openai-completions",
|
api: "openai-completions",
|
||||||
models: [
|
models: [
|
||||||
@@ -315,8 +315,8 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
templateValues: {
|
templateValues: {
|
||||||
baseUrl: {
|
baseUrl: {
|
||||||
label: "Base URL",
|
label: "Base URL",
|
||||||
placeholder: "https://api.stepfun.ai/v1",
|
placeholder: "https://api.stepfun.com/v1",
|
||||||
defaultValue: "https://api.stepfun.ai/v1",
|
defaultValue: "https://api.stepfun.com/v1",
|
||||||
editorValue: "",
|
editorValue: "",
|
||||||
},
|
},
|
||||||
apiKey: {
|
apiKey: {
|
||||||
|
|||||||
@@ -489,7 +489,7 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
|||||||
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/v1",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
setCacheKey: true,
|
setCacheKey: true,
|
||||||
},
|
},
|
||||||
@@ -503,8 +503,8 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
|||||||
templateValues: {
|
templateValues: {
|
||||||
baseURL: {
|
baseURL: {
|
||||||
label: "Base URL",
|
label: "Base URL",
|
||||||
placeholder: "https://api.stepfun.ai/v1",
|
placeholder: "https://api.stepfun.com/v1",
|
||||||
defaultValue: "https://api.stepfun.ai/v1",
|
defaultValue: "https://api.stepfun.com/v1",
|
||||||
editorValue: "",
|
editorValue: "",
|
||||||
},
|
},
|
||||||
apiKey: {
|
apiKey: {
|
||||||
|
|||||||
Reference in New Issue
Block a user