Post-installation setup for watsonx Code Assistant for Red Hat Ansible Lightspeed
Complete post-installation tasks to configure watsonx Code Assistant for Red Hat Ansible Lightspeed for your use case.
Get an API key
You need an API key to set up watsonx Code Assistant for Red Hat Ansible Lightspeed. To get an API key:
- Log in to the IBM® Software Hub web client as a user who has access to the deployment space.
- To switch between experiences, click the Switch locations icon (
) in the toolbar
- Change the experience to IBM watsonx Code Assistant™.
- Click your avatar in the toolbar.
- Select .
- Under API Key, click Generate new key.
- Click Generate, then Copy the key. Save it securely, as it cannot be recovered if lost.
Obtain your model_id
To obtain your model_id for watsonx Code Assistant for Red Hat Ansible Lightspeed:
- Determine the syntax of your model_id:
- If you are using the default model, the
model_idis the same as your IBM Software Hub deployment space ID. - If you are using a custom tuned model, the
model_idis the combination of your IBM Software Hub deployment space ID, followed by<|sepofid|>, followed by the UUID of the tuned model. For example:space_id<|sepofid|>model_id, wherespace_idis the UUID of your deployment space andmodel_idis the UUID of your tuned model.
- If you are using the default model, the
- To find your space_id if you are using the default model:
- Log in to the IBM Software Hub web client.
- To switch between experiences, click the Switch locations icon (
) in the toolbar
- Change the experience to IBM watsonx Code Assistant.
- Click the toolbar dropdown and select Deployments.
- If you see your deployment space listed, click your watsonx Code Assistant for Red Hat Ansible Lightspeed deployment to open it.
- If you don't see a deployment space, click New deployment space to create one.
- Click the Manage tab in the deployment space, then copy the
Space GUID and save it securely. Use the Space GUID as
your
model_id.
- To find your model_id if you are using a tuned model:
- Log in to the IBM Software Hub web client.
- To switch between experiences, click the Switch locations icon (
) in the toolbar
- Change the experience to IBM watsonx Code Assistant.
- Click the toolbar dropdown and select Deployments.
- Click your watsonx Code Assistant for Red Hat Ansible Lightspeed deployment to open it.
- Click the Assets tab in the deployment space, then click to open your deployed model. Copy the Model ID and save it securely.
Set up watsonx Code Assistant for Red Hat Ansible Lightspeed and the Visual Studio Code extension
To complete the set up of watsonx Code Assistant for Red Hat Ansible Lightspeed and the Visual Studio Code extension, follow the steps in the Red Hat documentation. For more information, see Setting up Red Hat Ansible Lightspeed on-premises deployment.