mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-26 01:45:56 +03:00
[PR #158] [MERGED] feat(fallback): 新增跨协议模型 Fallback 映射功能 #279
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/justlovemaki/AIClient-2-API/pull/158
Author: @ZqinKing
Created: 1/4/2026
Status: ✅ Merged
Merged: 1/4/2026
Merged by: @justlovemaki
Base:
main← Head:main📝 Commits (1)
fa03283feat(fallback): 新增跨协议模型 Fallback 映射功能📊 Changes
8 files changed (+163 additions, -28 deletions)
View changed files
📝
configs/config.json.example(+23 -1)📝
src/common.js(+8 -2)📝
src/provider-pool-manager.js(+80 -20)📝
src/service-manager.js(+5 -2)📝
src/ui-manager.js(+2 -0)📝
static/app/config-manager.js(+24 -1)📝
static/app/i18n.js(+9 -1)📝
static/index.html(+12 -1)📄 Description
功能概述
实现跨协议模型级别的 Fallback 映射机制,允许在主 Provider 不可用时,
根据模型名称自动映射到其他协议的 Provider 和模型。
设计原理
代码修改
配置示例
modelFallbackMapping: {
"gemini-claude-opus-4-5-thinking": { "targetProviderType": "claude-kiro-oauth", "targetModel": "claude-opus-4-5" } }
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.