Changes to the configuration to inject the model provider

changes related to fix #272