Updated to support a default adapter and per-model adapters.