Skip to content

feat: model fallback chain (#2017)#2018

Merged
RockChinQ merged 7 commits intomasterfrom
feat/api-chain
Mar 11, 2026
Merged

feat: model fallback chain (#2017)#2018
RockChinQ merged 7 commits intomasterfrom
feat/api-chain

Conversation

@RockChinQ
Copy link
Member


概述 / Overview

请在此部分填写你实现/解决/优化的内容:
Summary of what you implemented/solved/optimized:

更改前后对比截图 / Screenshots

请在此部分粘贴更改前后对比截图(可以是界面截图、控制台输出、对话截图等):
Please paste the screenshots of changes before and after here (can be interface screenshots, console output, conversation screenshots, etc.):

修改前 / Before:

修改后 / After:

检查清单 / Checklist

PR 作者完成 / For PR author

请在方括号间写x以打勾 / Please tick the box with x

  • 阅读仓库贡献指引了吗? / Have you read the contribution guide?
  • 与项目所有者沟通过了吗? / Have you communicated with the project maintainer?
  • 我确定已自行测试所作的更改,确保功能符合预期。 / I have tested the changes and ensured they work as expected.

项目维护者完成 / For project maintainer

  • 相关 issues 链接了吗? / Have you linked the related issues?
  • 配置项写好了吗?迁移写好了吗?生效了吗? / Have you written the configuration items? Have you written the migration? Has it taken effect?
  • 依赖加到 pyproject.toml 和 core/bootutils/deps.py 了吗 / Have you added the dependencies to pyproject.toml and core/bootutils/deps.py?
  • 文档编写了吗? / Have you written the documentation?

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. eh: Feature enhance: 新功能添加 / add new features IM: Discord Discord 适配器相关 / Discord adapter related IM: gewechat Gewechat 适配器相关 / Gewechat related IM: Lark 飞书 Lark 适配器相关 / Lark adapter related javascript Pull requests that update Javascript code m: Platform 机器人管理相关 / Bots management m: Provider LLM 模型相关 / LLMs management pd: Need testing pending: 待测试的PR / PR waiting to be tested labels Mar 1, 2026
@TyperBody
Copy link
Member

闹麻了

@TyperBody
Copy link
Member

怎么都有冲突了

RockChinQ and others added 5 commits March 12, 2026 01:33
---------

Co-authored-by: TyperBody <mcjiekejiemi@163.com>
- Restore find_spec in deps.py (avoid loading all modules at startup)
- Restore shared aiohttp session via httpclient.get_session()
Revert contributor's global aiohttp.ClientSession() changes that are
not part of the API Chain feature. These files should continue using
the shared session from httpclient module.
- Deleted APIChainsDialog component and its references in ModelsDialog.
- Removed APIChain interface and related types from the API entities.
- Updated DynamicFormComponent and DynamicFormItemComponent to replace model-or-api-chain-selector with model-fallback-selector.
- Added fallback model selection logic in DynamicFormItemComponent.
- Updated translations to remove API Chains related entries and add fallback model entries.
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Mar 11, 2026
@RockChinQ RockChinQ merged commit 79311cc into master Mar 11, 2026
3 checks passed
@RockChinQ RockChinQ deleted the feat/api-chain branch March 11, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eh: Feature enhance: 新功能添加 / add new features IM: Discord Discord 适配器相关 / Discord adapter related IM: gewechat Gewechat 适配器相关 / Gewechat related IM: Lark 飞书 Lark 适配器相关 / Lark adapter related javascript Pull requests that update Javascript code m: Platform 机器人管理相关 / Bots management m: Provider LLM 模型相关 / LLMs management pd: Need testing pending: 待测试的PR / PR waiting to be tested size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants