FastAPI service in infra/media-worker implementing every MediaInferenceProvider operation behind HTTP API v1, plus capabilities. Bearer auth, MEDIA_ROOT realpath enforcement, strict request schemas, cancellation on disconnect, GPU/CPU gates with 503 overflow, input size/duration limits, lazy SHA256-pinned model downloads, fail-closed redaction with atomic output, offline pytest suite with fake backends, CPU/CUDA/ROCm Dockerfile and a license review of every model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0138YqDj3ttfayRwuMKKrqVj
22 lines
623 B
JSON
22 lines
623 B
JSON
{
|
|
"$comment": "Shape of MediaCapabilitiesSchema in packages/contracts/src/media.ts. Keep in sync with the contract.",
|
|
"keys": ["configured", "operations", "accelerator", "hardwareEncoders"],
|
|
"operations": [
|
|
"detectScenes",
|
|
"transcribe",
|
|
"detectFaces",
|
|
"trackFaces",
|
|
"faceLandmarks",
|
|
"embedFrames",
|
|
"classifyContent",
|
|
"segmentPrompted",
|
|
"inpaintVideo",
|
|
"redact",
|
|
"synthesizeIdentity",
|
|
"audioFeatures",
|
|
"saliency"
|
|
],
|
|
"operationKeys": ["available", "experimental", "model", "license", "commercialUse"],
|
|
"accelerators": ["cpu", "cuda", "rocm", "metal", "none"]
|
|
}
|