Only filter models in auto-generated API if 'filter' param is set.