Get Function Version
curl --request GET \
--url https://mango.sievedata.com/v2/functions/{organization_name}/{function_name}/versions/{id} \
--header 'X-API-Key: <x-api-key>'
{
"id": "9c701df7-13e3-4d97-a344-693d615bede9",
"name": "whisper",
"version": "54cd08e8-8f77-49f1-9824-b969aab8bf7d",
"organization_id": "c0ec7825-0fcb-444e-b0b9-9660c40fa0f4",
"status": "ready",
"permissions": {
"private": false,
"ids": null
},
"gpu": "true",
"full_config": null,
"time": {
"queued": "2023-02-09T19:26:04.455000",
"started": "2023-02-09T19:26:04.467000",
"completed": "2023-02-09T19:27:23.462000"
},
"machine_type": "",
"type": "model",
"is_iterator_input": false,
"is_iterator_output": true,
"outputs": [
{
"type": "typing.Dict"
}
],
"inputs": [
{
"type": "sieve.types.file.Audio",
"name": "audio"
}
],
"minimum_running_replicas": 2,
"description": "",
"code_url": "",
"author": "sieve-developer"
}
This endpoint returns a JSON object that describes a given function version given its ID.
Request
name of Sieve organization
name of Sieve model
version id of Sieve function
Response
Id of the model.
Build status of the function version. Statuses are ‘queued’, ‘building’, ‘pushing’, ‘deploying’, ‘ready’, ‘error’
The time that the function build is queued.
The time that the function build finished building.
The time that the model is ready to process jobs.
Machine type to use, see possible values for GPU machine types here
An array of the model’s python pip packages.
An array of the model’s system packages.
Cuda Version.
Whether this model uses gpu.
The minimum number of replicas of the model. Scale your model’s minimum replicas to avoid cold starts.
The maximum number of replicas of the model. Prevents model replicas from scaling beyond a certain point.
The inputs to a function, learn more about inputs here
The outputs to a function, learn more about outputs here
The outputs to a function
curl --request GET \
--url https://mango.sievedata.com/v2/functions/{organization_name}/{function_name}/versions/{id} \
--header 'X-API-Key: <x-api-key>'
{
"id": "9c701df7-13e3-4d97-a344-693d615bede9",
"name": "whisper",
"version": "54cd08e8-8f77-49f1-9824-b969aab8bf7d",
"organization_id": "c0ec7825-0fcb-444e-b0b9-9660c40fa0f4",
"status": "ready",
"permissions": {
"private": false,
"ids": null
},
"gpu": "true",
"full_config": null,
"time": {
"queued": "2023-02-09T19:26:04.455000",
"started": "2023-02-09T19:26:04.467000",
"completed": "2023-02-09T19:27:23.462000"
},
"machine_type": "",
"type": "model",
"is_iterator_input": false,
"is_iterator_output": true,
"outputs": [
{
"type": "typing.Dict"
}
],
"inputs": [
{
"type": "sieve.types.file.Audio",
"name": "audio"
}
],
"minimum_running_replicas": 2,
"description": "",
"code_url": "",
"author": "sieve-developer"
}