feat: add built-in provider presets for Anthropic API-compatible services#424
Open
octo-patch wants to merge 1 commit intoYishenTu:mainfrom
Open
feat: add built-in provider presets for Anthropic API-compatible services#424octo-patch wants to merge 1 commit intoYishenTu:mainfrom
octo-patch wants to merge 1 commit intoYishenTu:mainfrom
Conversation
…ices Add one-click provider presets in Settings → Environment for popular Anthropic API-compatible providers: MiniMax, OpenRouter, DeepSeek, Kimi (Moonshot), and GLM (Zhipu AI). This makes it easy for users to switch between model providers without manually configuring env vars. - New providerPresets.ts with preset definitions and lookup function - Provider presets grid in EnvSnippetManager settings UI - MiniMax added to README compatible providers list - Custom Model Providers table in README with base URLs and models - i18n support for all 10 locales - 35 unit tests + 12 integration tests
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
ANTHROPIC_BASE_URL,ANTHROPIC_API_KEY, andANTHROPIC_MODELenv vars, including context window limits where applicableChanges
src/utils/providerPresets.tsPROVIDER_PRESETSarray +getProviderPreset()lookupsrc/features/settings/ui/EnvSnippetManager.tssrc/style/settings/env-snippets.csssrc/i18n/types.tssettings.providerPresets.namekeysrc/i18n/locales/*.json(10 files)README.mdtests/unit/utils/providerPresets.test.tstests/integration/utils/providerPresets.test.ts17 files changed, 368 additions, 1 deletion
Test plan
npm run typecheck— passesnpm run lint— passesnpm run test— 35 unit + 12 integration tests passnpm run build— production build succeeds