Checklist
Please review first that the issue is fully related with this SDK by checking the relevant checkboxes ([x]).
Info
- Modzy SDK version: 0.6.0
- Python version: 3.9.7
- Operating System: Windows
Description
When submitting a job to any model, one of the parameters is the model version. There are ways to extract the latest version programmatically, but it would be great if the SDK defaulted to the latest version in the case a version is not supplied.
Steps to reproduce
You can get the latest model version this way in the SDK:
for model in models:
model_info = client.models.get(models[model]['id'])
if models[model].get('version', None) == None: #let set a version explicitly above
models[model]['version'] = model_info.latestActiveVersion
models[model]['name'] = model_info.name
Expected results: Default latest version extracted by SDK automatically if user does not pass version through
Actual results: Requires manual work on user currently
Checklist
Please review first that the issue is fully related with this SDK by checking the relevant checkboxes (
[x]).Info
Description
When submitting a job to any model, one of the parameters is the model version. There are ways to extract the latest version programmatically, but it would be great if the SDK defaulted to the latest version in the case a version is not supplied.
Steps to reproduce
You can get the latest model version this way in the SDK:
Expected results: Default latest version extracted by SDK automatically if user does not pass version through
Actual results: Requires manual work on user currently