Poll the durable status of an operation.
curl --request GET \
--url http://localhost:3001/v1/training/operations/{operation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/operations/{operation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/operations/{operation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"session_id": "<string>",
"run_id": "<string>",
"seq_id": 2,
"kind": "forward",
"status": "parked",
"result": {},
"error_code": "<string>",
"progress": {},
"progress_updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}unified-training
Poll the durable status of an operation.
GET
/
v1
/
training
/
operations
/
{operation_id}
Poll the durable status of an operation.
curl --request GET \
--url http://localhost:3001/v1/training/operations/{operation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/operations/{operation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/operations/{operation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"session_id": "<string>",
"run_id": "<string>",
"seq_id": 2,
"kind": "forward",
"status": "parked",
"result": {},
"error_code": "<string>",
"progress": {},
"progress_updated_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}Authorizations
Whitney-issued API key. No organization-selection header is accepted.
Path Parameters
Pattern:
^wto_[0-9a-f]{32}$Response
Operation state, safe durable summary, and any terminal error code.
Pattern:
^wto_[0-9a-f]{32}$Pattern:
^wts_[0-9a-f]{32}$Pattern:
^wtr_[0-9a-f]{32}$Required range:
x >= 1Available options:
forward, forward_backward, optim_step, save_state, load_state, save_weights_for_sampler, export_lora, sample, logprobs, finish, cancel Available options:
parked, pending, executing, succeeded, failed, cancelled 