feat(video): 接入 Agnes Video 2.5 与 Token Plan Flash - #820
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
✅ 此 PR 已关联 issue,之前的提醒已自动标记为已解决。 |
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #820 +/- ##
==========================================
+ Coverage 86.52% 91.57% +5.04%
==========================================
Files 293 188 -105
Lines 21902 12029 -9873
Branches 3329 0 -3329
==========================================
- Hits 18951 11015 -7936
+ Misses 2021 1014 -1007
+ Partials 930 0 -930
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 106 files with indirect coverage changes 🚀 New features to boost your workflow:
|
| uses_isolated_model_credentials = ( | ||
| self._registry.family_of(model) is Family.VIDEO_AGNES | ||
| ) |
There was a problem hiding this comment.
[P1] 在路由熔断前放行独立的 Agnes 提交
这里仅在 Agnes 已经进入型号循环、提交失败后才把 OPEN_AGGREGATOR/FALLBACK_KEY 改为型号降级,但 i2v() 在此之前会先检查 aggregator、base_url:<Modelink route> 和 key 熔断并直接失败或跳过整条 route。生产装配复用共享 _CIRCUIT,因此一次 Kling/Modelink 未达上游打开 base_url:qnaigc-primary(或全局 aggregator)后,即使 Agnes 使用完全独立的 URL/key,后续以 Agnes 为主模型的请求也不会调用 Agnes adapter;单 route 配置下会直接报错。这破坏了本 PR 的凭证/服务隔离和主模型可用性,应让 Agnes 绕过 Modelink route/key/aggregator 熔断,或为 Agnes 建立独立 route/circuit scope。
There was a problem hiding this comment.
已在 1a116e7 修复:将 aggregator、base_url 与 key 的熔断判定下沉到具体型号层;Agnes 仅绕过 Modelink 共享熔断,仍受自身 model 熔断约束,Kling 等型号继续遵守原共享熔断。新增三种共享 scope 的放行测试,并验证 Agnes 失败后不会绕过熔断提交 Kling。完整后端测试 1850 passed、14 skipped,ruff、import-linter 与 diff check 均通过。
|
Deployment failed for project windup with the following error: Learn More: https://vercel.com/huyan-s-projects1?upgradeToPro=build-rate-limit |
Closes #821
变更内容
agnes-video-2.5-flash;限流或建单前不可达时,安全重试后自动降级到 Kling。部署配置
验证
uv run ruff check .uv run lint-imports:2 kept,0 brokenuv run pytest -q:1844 passed,14 skipped