import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const embedding = await client.ai.embeddings.retrieve('task_id');
console.log(embedding.data);{
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"status": "queued",
"created_at": "<string>",
"finished_at": "<string>"
}
}Check the status of a current embedding task. Will be one of the following:
queued - Task is waiting to be picked up by a workerprocessing - The embedding task is runningsuccess - Task completed successfully and the bucket is embeddedfailure - Task failed and no files were embedded successfullypartial_success - Some files were embedded successfully, but at least one failedimport Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const embedding = await client.ai.embeddings.retrieve('task_id');
console.log(embedding.data);{
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"status": "queued",
"created_at": "<string>",
"finished_at": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?