def METHOD_NAME(config: RouteConfig):
    prov = get_provider(config.model.provider)(config)
    async def _embeddings(payload: embeddings.RequestPayload) -> embeddings.ResponsePayload:
        return await prov.embeddings(payload)
    return _embeddings