mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 10:21:16 +08:00
Add AtlasCloud partner provider presets
This commit is contained in:
@@ -623,6 +623,20 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
partnerPromotionKey: "apinebula",
|
||||
icon: "apinebula",
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
apiKeyUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
category: "aggregator",
|
||||
baseUrl: "https://api.atlascloud.ai",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
endpointCandidates: ["https://api.atlascloud.ai"],
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "atlascloud",
|
||||
icon: "atlascloud",
|
||||
},
|
||||
{
|
||||
name: "ClaudeAPI",
|
||||
websiteUrl: "https://claudeapi.com",
|
||||
|
||||
@@ -661,6 +661,27 @@ export const providerPresets: ProviderPreset[] = [
|
||||
partnerPromotionKey: "apinebula",
|
||||
icon: "apinebula",
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
apiKeyUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://api.atlascloud.ai",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
ANTHROPIC_MODEL: "zai-org/glm-5.1",
|
||||
ANTHROPIC_DEFAULT_HAIKU_MODEL: "zai-org/glm-5.1",
|
||||
ANTHROPIC_DEFAULT_SONNET_MODEL: "zai-org/glm-5.1",
|
||||
ANTHROPIC_DEFAULT_OPUS_MODEL: "zai-org/glm-5.1",
|
||||
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1",
|
||||
},
|
||||
},
|
||||
endpointCandidates: ["https://api.atlascloud.ai"],
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "atlascloud",
|
||||
icon: "atlascloud",
|
||||
},
|
||||
{
|
||||
name: "ClaudeAPI",
|
||||
websiteUrl: "https://claudeapi.com",
|
||||
|
||||
@@ -877,6 +877,30 @@ requires_openai_auth = true`,
|
||||
partnerPromotionKey: "apinebula",
|
||||
icon: "apinebula",
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
apiKeyUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
category: "aggregator",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: `model_provider = "custom"
|
||||
model = "zai-org/glm-5.1"
|
||||
disable_response_storage = true
|
||||
|
||||
[model_providers.custom]
|
||||
name = "AtlasCloud"
|
||||
base_url = "https://api.atlascloud.ai/v1"
|
||||
wire_api = "responses"
|
||||
requires_openai_auth = true`,
|
||||
endpointCandidates: ["https://api.atlascloud.ai/v1"],
|
||||
apiFormat: "openai_chat",
|
||||
modelCatalog: modelCatalog([
|
||||
{ model: "zai-org/glm-5.1", displayName: "GLM 5.1" },
|
||||
]),
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "atlascloud",
|
||||
icon: "atlascloud",
|
||||
},
|
||||
{
|
||||
name: "ClaudeCN",
|
||||
websiteUrl: "https://claudecn.top",
|
||||
|
||||
@@ -805,6 +805,30 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
model: { default: "gpt-5.5", provider: "apinebula" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
apiKeyUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
settingsConfig: {
|
||||
name: "atlascloud",
|
||||
base_url: "https://api.atlascloud.ai/v1",
|
||||
api_key: "",
|
||||
api_mode: "chat_completions",
|
||||
models: [
|
||||
{
|
||||
id: "zai-org/glm-5.1",
|
||||
name: "GLM 5.1",
|
||||
},
|
||||
],
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "atlascloud",
|
||||
icon: "atlascloud",
|
||||
suggestedDefaults: {
|
||||
model: { default: "zai-org/glm-5.1", provider: "atlascloud" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
@@ -1504,6 +1504,38 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
apiKeyUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://api.atlascloud.ai/v1",
|
||||
apiKey: "",
|
||||
api: "openai-completions",
|
||||
models: [
|
||||
{
|
||||
id: "zai-org/glm-5.1",
|
||||
name: "GLM 5.1",
|
||||
},
|
||||
],
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "atlascloud",
|
||||
icon: "atlascloud",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "atlascloud/zai-org/glm-5.1",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
@@ -1264,6 +1264,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
apiKeyUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "AtlasCloud",
|
||||
options: {
|
||||
baseURL: "https://api.atlascloud.ai/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"zai-org/glm-5.1": { name: "GLM 5.1" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "atlascloud",
|
||||
icon: "atlascloud",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
Reference in New Issue
Block a user