from .vapi_image import VAPIImageAdapter
from .minimax_image import MiniMaxImageAdapter
from .minimax_music import MiniMaxMusicAdapter
from .minimax_video import MiniMaxVideoAdapter
from .jimeng_video import JimengVideoAdapter
from .jimeng_image import JimengImageAdapter

ADAPTERS = {
    "vapi_image": VAPIImageAdapter(),
    "minimax_image": MiniMaxImageAdapter(),
    "minimax_music": MiniMaxMusicAdapter(),
    "minimax_video": MiniMaxVideoAdapter(),
    "jimeng_video": JimengVideoAdapter(),
    "jimeng_image": JimengImageAdapter(),
}

def get_adapter(name: str):
    adapter = ADAPTERS.get(name)
    if not adapter:
        raise ValueError(f"unknown provider: {name}")
    return adapter


