[feat] provider: wire the capability contract into the vLLM-Omni precheck path
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with domain/capability_contract.py from #278 to see what resolve(), required_roles_for() and role_verdict() expect, then read packages/core/src/opendirector/integrations/vllm_omni.py:61 where prepare_inputs decides the first_frame/reference/continuation three-way. The blocker is #266's discovery, which is still conflicting and is the only source of the declaration document, so read that thread before writing anything. Done means the precheck consumes the discovered document without refetching, validate() rejects unsupported required roles with the contract's own reason codes, the verdict stays unknown when no document is published, and a test drives the precheck from a real declaration payload.
由索引模型根据 Issue 内容生成。
描述
Follow-up to #278, which added domain/capability_contract.py — the parser for the omni.capabilities envelope (/v1/omni/capabilities, schema_version 1) — with no production call site. That was the intended shape of #278: a self-contained parser, integration explicitly out of scope. This issue tracks the wiring.
Why it is not in #278. Nothing in this repository obtains the omni.capabilities document yet. The only /capabilities surface is POST /api/model-configs/capabilities, which returns the videoCapabilities output-spec extension of GET /models — a different document from the one the parser reads. The producer is #266's discovery, which is open and still conflicting.
Target call site. VllmOmniGeneration.prepare_inputs (packages/core/src/opendirector/integrations/vllm_omni.py:61), where the first_frame / reference / continuation three-way is already decided. resolve() turns the declaration into per-capability availability; required_roles_for() and role_verdict() decide which of source_video / video_noise_mask / audio_noise_mask a request must carry.
Acceptance
- the declaration document obtained by #266's discovery reaches
resolve()on the precheck path, with no second fetch of the same document -
validate()refuses a request whose required roles the declaration does not support, using the contract's own reason codes (unsupported/route_disabled/role_not_declared/ …) - a test drives the precheck from a real declaration payload rather than a hand-built one
- no behavioural change when the service publishes no
omni.capabilitiesdocument (the verdict staysunknown)
Out of scope. Changing what #278 delivers; any adapter or UI surface for the capability matrix.
Depends on: #266.
- 主要语言
- TypeScript
- 星标
- 119
- 派生
- 16
- 平均合并
- 16 小时 13 分钟
- 30 天内合并 PR
- 195
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ThinkFlowLab/OpenDirector 的其他 Issue
-
area:provider
难度 2/5 1-3 小时 新手友好度 78/100
ThinkFlowLab/OpenDirector#477 · 1 条评论 ·
维护者通常 1 天内回复
-
area:ci
难度 2/5 1-3 小时 新手友好度 76/100
ThinkFlowLab/OpenDirector#411 ·
维护者通常 1 天内回复
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:agent
难度 2/5 1-3 小时 新手友好度 88/100
ThinkFlowLab/OpenDirector#348 ·
维护者通常 1 天内回复
-
area:provider
难度 2/5 1-3 小时 新手友好度 72/100
ThinkFlowLab/OpenDirector#311 ·
维护者通常 1 天内回复
-
area:desktop area:install help wanted
难度 4/5 3-5 天 新手友好度 25/100
ThinkFlowLab/OpenDirector#475 ·
维护者通常 1 天内回复
查看 ThinkFlowLab/OpenDirector 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verification可能已有人在做 @roboclaw-bot 今天认领。 未关闭clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
难度 1/5 1 小时以内 新手友好度 78/100
openclaw/openclaw#204323 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
virtue-initiative/virtue-initiative#953 ·
维护者通常 1 天内回复
-
needs-area-label
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
fumicode/bublys-org#261 ·
维护者通常 12 天内回复