Overview of @twick/ai-models
mainThe @twick/ai-models package provides provider adapters and orchestration primitives for Twick generative AI integrations. It is designed to create a provider-agnostic backend layer that allows applications to integrate various caption, voice, avatar, and media APIs behind a single unified contract.
Key capabilities include:
- Multi-provider orchestration: Manage jobs with unified status tracking and automatic fallback mechanisms.
- Standardized interfaces: Use a common
ProviderAdapterinterface for different generation workflows. - Data normalization: Use timeline injection helpers to convert provider outputs into standard patch contracts, and caption normalization for legacy payloads.
- Job management: A job store interface (with an
InMemoryJobStoreimplementation) to track generation tasks.