Add AtlasCloud partner provider presets

This commit is contained in:
Jason
2026-05-29 09:46:00 +08:00
parent 9ef141902e
commit 32b30e43c0
18 changed files with 184 additions and 0 deletions
@@ -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",
+21
View File
@@ -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",
+24
View File
@@ -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",
+24
View File
@@ -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",
+32
View File
@@ -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",
+28
View File
@@ -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",