1. Instantiate Client
1. Instantiate Client
Follow the instructions in the Quickstart Guide to setup the SGP Client
2. Define model template
2. Define model template
This example uses a model template. Hosted or custom models use templates to
configure their deployment; vendor-managed third-party models can be created
without a
model_template_id and receive a deployment automatically. A model
template serves 2 purposes. First, it provides common scaffolding that is static
across multiple models. Second, it exposes several variables that can be
injected at model creation time to customize the model.3. Create a model instance
3. Create a model instance
Use the created model template to create a model instance
4. Create a model deployment
4. Create a model deployment
Deploy the created instance
5. Execute the model deployment
5. Execute the model deployment
Execute the model deployment. In this case, we are executing a completion model with a list of prompts.