Repository navigation
Conversation
_DYNAMIC_PROVIDERS 是进程级 list,build_app 无条件整体替换,同进程里第二次 装配会覆盖前一个 app 的渠道集合:先建的 app 把后建 app 的 GENERIC_CHANNELS 实例当成自家合法渠道(@渠道 解析、API Key 渠道绑定、ToS 归类、管理台下拉、 模型目录排序都读那份全局量)。 改为不可变值 ProviderCatalog(内置渠道 + 本次装配的动态实例),由 build_app 构造一次并注入 ExecutorDeps / Services;resolve / tos_for / parse_model_aliases / _parse_binding 一律收显式 catalog,不传时只有内置渠道。 重名校验移到构造期,失败不留半污染状态。
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.
复现验收全通过:GENERIC_CHANNELS='badentry' 下 doctor 不再抛栈,输出 FAIL 行+退出码1,--json 合法且含该 FAIL;合法配置无 FAIL;非法配置 upstream_endpoints 仅回退内置 generic;ruff+100% 覆盖率(6305 passed)+web vitest 952 passed 全绿;本单无 PR(内容已在 origin/main,diff 为空),结论无法回写 PR。
任务:COD-15