Repository navigation
feat: 新增 Atlas Cloud 提供商模板 - #1290
Open
binyangzhu000-sudo wants to merge 1 commit into
Open
binyangzhu000-sudo wants to merge 1 commit into
binyangzhu000-sudo wants to merge 1 commit into
Conversation
Atlas Cloud (https://api.atlascloud.ai/v1) 是 OpenAI 兼容的聚合网关,一把 key 提供 DeepSeek、智谱 GLM、月之暗面 Kimi、通义千问、MiniMax 等开源权重模型。 三个字段都实跑验证过: - baseURL:/v1/models 为公开端点(无需 key)实测返回 117 个模型; /v1/chat/completions 用 deepseek-ai/deepseek-v4-flash 实测正常返回。 - apiKeyUrl:200。 - icon:复用 @lobehub/icons-static-svg@1.94.0 里现成的 atlascloud.svg, 与表内另外 11 条同 CDN 同版本。 只改国际版模板:Atlas Cloud 在中国大陆的可达性我无法在本地验证, provider-templates-cn.json 保持不动。config-manifest.json 也未改, publish-config 工作流会自动递增 versionCode。 Signed-off-by: binyangzhu000-sudo <binyangzhu000@gmail.com> Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: binyangzhu000-sudo <binyangzhu000@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
在
config/provider-templates.json里加一条 Atlas Cloud 预设,放在openrouter之后(同为国际聚合网关)。纯加法,8 行,不改任何现有条目。{ "key": "atlascloud", "title": "Atlas Cloud", "baseURL": "https://api.atlascloud.ai/v1", "apiKeyUrl": "https://console.atlascloud.ai/api-keys", "icon": "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-svg@1.94.0/icons/atlascloud.svg", "enabled": true }Atlas Cloud 是 OpenAI 兼容的聚合网关,一把 key 提供 DeepSeek、智谱 GLM、月之暗面 Kimi、通义千问、MiniMax 等开源权重模型。现在用户要用它只能手填 base_url。
三个字段都实跑验证过,不是照抄隔壁条目
baseURL:/v1/models是公开端点,不需要 key,所以这条谁都能复核:curl -s https://api.atlascloud.ai/v1/models | head -c 300deepseek-ai/deepseek-v4-flash、zai-org/glm-5.3-flash、moonshotai/kimi-k3。/v1/chat/completions也用deepseek-ai/deepseek-v4-flash实跑过,正常返回文本。apiKeyUrl:200。icon:@lobehub/icons-static-svg上游已经收录了 Atlas Cloud 的图标,所以直接复用,CDN 和版本号(@1.94.0)与表内另外 11 条完全一致,没有新引入图床:<title>Atlas Cloud</title>,是对的那个牌子。另外我把这个文件喂给
provider-templates-runtime.ts里normalizeProviderTemplatesPayload的那套过滤条件跑了一遍(isNonEmptyString(key/title)+isValidUrl(baseURL)+enabled !== false),28 条全部存活,新条目的apiKeyUrl也通过isValidUrl。两处刻意没动
provider-templates-cn.json没加。那份是给大陆用户的清单,Atlas Cloud 在大陆的可达性我在本地无法验证,与其塞一条可能连不上的,不如先不加。如果你们那边方便验证、或者觉得该一并加上,我补一个 commit。config-manifest.json没动。publish-config.yml里是versionCode: Math.max(existing, source) + 1,发布时自动递增,手动改反而可能和线上 manifest 打架。src/lib/ai/tauri-client.ts里那几个isOpenRouterProvider/isDeepSeekProvider分支也没动:那是给需要特殊 header/参数的 provider 用的,Atlas Cloud 走标准 OpenAI 兼容协议,不需要特例。利益相关
我在 Atlas Cloud 工作。模型列表接口是公开的,上面每个数字都能自己 curl 一遍复核。条目的位置、
title写法你们想怎么调都行,我照改。🤖 Generated with Claude Code