import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const response = await client.modelServers.updateBackend('model_server_id', {
new_model_deployment_id: 'new_model_deployment_id',
});
console.log(response.account_id);
{
"name": "<string>",
"model_server_id": "<string>",
"model_deployment_id": "<string>",
"account_id": "<string>",
"alias": "<string>",
"new_model_deployment_id": "<string>",
"old_model_deployment_id": "<string>"
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const response = await client.modelServers.updateBackend('model_server_id', {
new_model_deployment_id: 'new_model_deployment_id',
});
console.log(response.account_id);
{
"name": "<string>",
"model_server_id": "<string>",
"model_deployment_id": "<string>",
"account_id": "<string>",
"alias": "<string>",
"new_model_deployment_id": "<string>",
"old_model_deployment_id": "<string>"
}
Successful Response
Point the model server to a new model deployment.
Args: old_model_deployment_id(str): The ID of the model deployment to use as the new backend.