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.
修复已在 main(22969ef):blocked_ips 每请求现读 runtime_settings 并保留启动期快照回退,热更生效/移除/回退/响应形状均有测试;vitest 952 passed、pytest 6305 passed、覆盖率 100%、ruff 干净。唯一阻塞:COD-12 无 PR(分支树与 origin/main 相同,修复已随 main 落地),无法按流程回写评论/由内核合并。
任务:COD-12