fix: use a lambda to define default her api

Allowing to setup the api after models are loaded.