HomeGuidesAPI ReferenceChangelog
Log In
API Reference

ModelList

used to conveniently manipulate a list of models. Returned by search_models() on WizataDSAPIClient.

Attributes

NameTypeDescription
modelslistlist of ModelInfo instances.
identifiers_infodictdictionary of ModelIdentifierInfo keyed by identifier.

Methods

append()

add a model to the list.

NameTypeDefaultDescription
modelModelInfomodel to add.

exists()

check if a model already exists in the list.

NameTypeDefaultDescription
modelModelInfomodel to check.
return: True if model exists, False otherwise.

select_active_model()

select the active model version for a given identifier.

NameTypeDefaultDescription
identifierstrmodel identifier string.
return: ModelInfo of the active version.

select_all_active_model()

select all active model versions.

return: list of ModelInfo.