feat: add Atlas Cloud provider - #113
Open
binyangzhu000-sudo wants to merge 2 commits into
Open
Conversation
Signed-off-by: binyangzhu000-sudo <224954946+binyangzhu000-sudo@users.noreply.github.com>
Adapt the Atlas Cloud provider to the connection/template model introduced on main. The previous implementation targeted the fixed-id provider record (`providers` keyed by id plus `activeProvider`), which main replaced with a list of connections created from templates. - Move `atlascloud` out of LEGACY_THIRD_PARTY_PROVIDER_IDS and into THIRD_PARTY_TEMPLATE_IDS. Atlas Cloud never shipped in a released version, so it has no stored settings to migrate; leaving it in the legacy list would also have left LEGACY_TEMPLATE_ID and THIRD_PARTY_PROVIDER_LABELS without entries for it. - Describe the provider through TEMPLATE_DEFAULTS (name, base URL, default model, protocol, API-key and docs links) so it can be created from the add-connection dialog. - Fill in the remaining per-template records: THIRD_PARTY_TEMPLATE_LABELS, TEMPLATE_LABEL_KEYS with an i18n entry, and THIRD_PARTY_TEMPLATE_LOGO (reusing the generic logo, as there is no Atlas Cloud icon asset). - Rewrite the routing test against the connection model, keeping every test main added in the meantime.
Author
|
Rebased onto current What changed:
Validation:
The net PR diff is 6 files / +54. CI currently shows |
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.
Summary
Verification
npx vitest run src/utils/chatApiRoute.test.ts(2 passed)npx eslint src/types/settings.ts src/utils/thirdPartyApiProviders.ts src/utils/chatApiRoute.test.ts --max-warnings=0npx prettier --check src/types/settings.ts src/utils/thirdPartyApiProviders.ts src/utils/chatApiRoute.test.tsnpm run buildnpm run build:apisendOpenAICompatibleMessageNonStreamreturned contentExisting baseline issues
npm run typecheckstill reports the existingLanguageIcon.tsx:218compactLabelerroruseAppEvents.test.tsxTab-cycle failures; all three reproduce on the unmodified base commitRisk