[feat] provider: wire the capability contract into the vLLM-Omni precheck path

Offen
#340 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
32/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
ai, backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:provider

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.capabilities document (the verdict stays unknown)

Out of scope. Changing what #278 delivers; any adapter or UI surface for the capability matrix.

Depends on: #266.

Vorherrschende Sprache
TypeScript
Sterne
119
Forks
16
Ø Merge
16 Std. 13 Min.
Gemergte PRs (30 T.)
195

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ThinkFlowLab/OpenDirector

Alle Issues in ThinkFlowLab/OpenDirector

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.