The infer_model() factory function would be much more useful if it allowed providing extra kwargs to also provide to the model for initialisation.
For example, just about all model classes take api_key and http_client as initialisation kwargs, and would be convenient to be able to dynamically initialise a model class while specifying these parameters as well.