feat: multi-provider API support with per-provider keys & model name mapping (closes #2329)#2333
Open
LaiyanB wants to merge 2 commits into
Open
feat: multi-provider API support with per-provider keys & model name mapping (closes #2329)#2333LaiyanB wants to merge 2 commits into
LaiyanB wants to merge 2 commits into
Conversation
… name mapping Backend: - Add 10 built-in API providers (DeepSeek official, SiliconFlow, Aliyun, Volcengine, Tencent, Baidu, OpenRouter, Fireworks, Together, Replicate) - Add resolveModelForProvider() to map canonical model names to provider-specific names at API call time - Add loadResolvedModel() convenience function - Wire providerId through CacheFirstLoop, ContextManager, subagents, and all CLI entry points - Auto-escalation and fold-summary calls now use provider-resolved model names - emitSettings sends masked key prefixes for ALL providers, not just the current one CLI: - Add reasonix provider command (list, set, show, key, add, remove) Desktop UI: - Move provider/key section from General to Models settings page - Provider dropdown, API key input per provider, custom provider management - Key input resets when switching providers, no fallback leak between providers - UI always shows canonical model names (deepseek-v4-flash / deepseek-v4-pro)
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.
Closes #2329
概述
实现多 API 供应商支持,内置 10 家常用 DeepSeek 供应商,支持用户添加自定义供应商。每个供应商独立管理 API Key,切换时自动加载对应的 Key 和模型名映射。
内置供应商
变更内容
后端
CLI
桌面端 UI
配置持久化
存储在 ~/.reasonix/config.json,apiProvider + apiKeys + customProviders