diff --git a/src/server/__tests__/provider-presets.test.ts b/src/server/__tests__/provider-presets.test.ts index 550f0ee81..343ba9f34 100644 --- a/src/server/__tests__/provider-presets.test.ts +++ b/src/server/__tests__/provider-presets.test.ts @@ -69,6 +69,7 @@ describe('provider presets API', () => { const minimax = PROVIDER_PRESETS.find((preset) => preset.id === 'minimax') const shengsuanyun = PROVIDER_PRESETS.find((preset) => preset.id === 'shengsuanyun') const teamorouter = PROVIDER_PRESETS.find((preset) => preset.id === 'teamorouter') + const atlascloud = PROVIDER_PRESETS.find((preset) => preset.id === 'atlascloud') const xuanshuapi = PROVIDER_PRESETS.find((preset) => preset.id === 'xuanshuapi') const fennoai = PROVIDER_PRESETS.find((preset) => preset.id === 'fennoai') const qiniuai = PROVIDER_PRESETS.find((preset) => preset.id === 'qiniuai') @@ -132,6 +133,15 @@ describe('provider presets API', () => { expect(teamorouter?.defaultModels.sonnet).toBe('claude-sonnet-5') expect(teamorouter?.defaultModels.opus).toBe('claude-opus-4-8') expect(teamorouter?.modelContextWindows?.['claude-opus-4-8']).toBe(1000000) + expect(atlascloud?.baseUrl).toBe('https://api.atlascloud.ai') + expect(atlascloud?.apiFormat).toBe('openai_chat') + expect(atlascloud?.authStrategy).toBe('api_key') + expect(atlascloud?.defaultModels).toEqual({ + main: 'deepseek-ai/deepseek-v4-pro', + haiku: 'deepseek-ai/deepseek-v4-pro', + sonnet: 'deepseek-ai/deepseek-v4-pro', + opus: 'deepseek-ai/deepseek-v4-pro', + }) expect(xuanshuapi?.baseUrl).toBe('https://www.xuanshuapi.com') expect(xuanshuapi?.apiFormat).toBe('anthropic') expect(xuanshuapi?.authStrategy).toBe('auth_token') diff --git a/src/server/config/providerPresets.json b/src/server/config/providerPresets.json index ecb1038d6..f9b2d90a1 100644 --- a/src/server/config/providerPresets.json +++ b/src/server/config/providerPresets.json @@ -236,6 +236,21 @@ "claude-haiku-4-5-20251001": 200000 } }, + { + "id": "atlascloud", + "name": "Atlas Cloud", + "baseUrl": "https://api.atlascloud.ai", + "apiFormat": "openai_chat", + "defaultModels": { + "main": "deepseek-ai/deepseek-v4-pro", + "haiku": "deepseek-ai/deepseek-v4-pro", + "sonnet": "deepseek-ai/deepseek-v4-pro", + "opus": "deepseek-ai/deepseek-v4-pro" + }, + "needsApiKey": true, + "websiteUrl": "https://www.atlascloud.ai", + "authStrategy": "api_key" + }, { "id": "fennoai", "name": "FennoAI",