client.models.get_version_input_sample
Retrieve the input sample
client.models.get_version_input_sample(model, version)
Returns a job request sample for this model in JSON format.
Parameters
Parameter | Type | Description | Example |
---|---|---|---|
model | str Model | A model identifier assigned by Modzy or a preloaded model object. | 'ed542963de' |
version | str | The model’s version number. It follows the semantic versioning format. | '0.0.27' |
Returns
A JSON string with a job request sample for the model
{
"model": {
"identifier": "ed542963de",
"version": "1.0.27"
},
"input": {
"type": "text",
"sources": {
"0001": {
"input.txt": "Sometimes I really hate ribs."
}
}
}
}
Examples
>>>input_sample = client.models.get_version_input_sample('ed542963de', '0.0.27')
Updated almost 2 years ago