import os
from scale_gp import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
response = client.model_servers.update_backend(
model_server_id="model_server_id",
new_model_deployment_id="new_model_deployment_id",
)
print(response.account_id){
"name": "<string>",
"model_server_id": "<string>",
"account_id": "<string>",
"new_model_deployment_id": "<string>",
"model_deployment_id": "<string>",
"alias": "<string>",
"old_model_deployment_id": "<string>"
}import os
from scale_gp import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
response = client.model_servers.update_backend(
model_server_id="model_server_id",
new_model_deployment_id="new_model_deployment_id",
)
print(response.account_id){
"name": "<string>",
"model_server_id": "<string>",
"account_id": "<string>",
"new_model_deployment_id": "<string>",
"model_deployment_id": "<string>",
"alias": "<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.