client.models.get_versions

Retrieve model versions

client.models.get_versions(model)

Returns a list of a historical versions for a specific model.

Parameters

Parameter

Type

Description

Example

model_id

str

A model identifier assigned by Modzy or a preloaded model object.

'ed542963de'

Returns

A JSON object with a list of model versions for the model_id specified

[
  {
    "version": "string"
  }
]

Examples

>>>versions = client.models.get_versions("ed542963de")
>>>len(versions)
3
>>>for version in versions:
...   version.version
... 

'0.0.27'
'1.0.1'
'1.0.27'

Did this page help you?