client.models.get_related
Retrieve related models
client.models.get_related(model)
Returns a detailed list of all the models that share tags with a given model.
Parameters
Parameter | Type | Description | Example |
---|---|---|---|
model | str Model | A model identifier assigned by Modzy or a preloaded model object. | 'ed542963de' |
Returns
A JSON object with a detailed list of models that share at least one tag with a given model.
[
{
"model_id": "string",
"latest_version": "string",
"latest_active_version": "string",
"versions": ["string"],
"author": "string",
"name": "string",
"description": "string",
"permalink": "string",
"is_active": "boolean",
"is_recommended": "boolean",
"is_commercial": "boolean",
"features": [
{
"identifier": "string",
"name": "string",
"description": "string"
}
],
"tags": [
{
"identifier": "string",
"name": "string",
"data_type": "string",
"is_categorical": "boolean"
}
],
"images": [
{
"url": "string",
"caption": "string",
"relation_type": "string"
}
],
"last_active_date_time": "date-time"
}
]
Examples
>>>models = client.models.get_related('mcmedzgiu3')
>>>len(models)
30
>>>models[0].model_id
'e69796438e'
>>>models[0].name
'Text Summarization'
Using the model object
>>>model = client.models.get('mcmedzgiu3')
>>>models = client.models.get_related(model)
>>>len(models)
30
>>>models[0].model_id
'e69796438e'
>>>models[0].name
'Text Summarization'
You can also use a model object directly for this call
>>>model = client.models.get('mcmedzgiu3')
>>>models = model.get_related()
>>>len(models)
30
>>>models[0].model_id
'e69796438e'
>>>models[0].name
'Text Summarization'
Updated about 2 years ago