Skip to content

Add optional init kwargs to infer_model() #720

@Finndersen

Description

@Finndersen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions