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:
  1. Log in to the IBM® Software Hub web client as a user who has access to the deployment space.
  2. To switch between experiences, click the Switch locations icon (Switch locations icon) in the toolbar
  3. Change the experience to IBM watsonx Code Assistant™.
  4. Click your avatar in the toolbar.
  5. Select Profile > Settings.
  6. Under API Key, click Generate new key.
  7. 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:
  1. Determine the syntax of your model_id:
    • If you are using the default model, the model_id is the same as your IBM Software Hub deployment space ID.
    • If you are using a custom tuned model, the model_id is 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, where space_id is the UUID of your deployment space and model_id is the UUID of your tuned model.
  2. To find your space_id if you are using the default model:
    1. Log in to the IBM Software Hub web client.
    2. To switch between experiences, click the Switch locations icon (Switch locations icon) in the toolbar
    3. Change the experience to IBM watsonx Code Assistant.
    4. Click the toolbar dropdown and select Deployments.
    5. If you see your deployment space listed, click your watsonx Code Assistant for Red Hat Ansible Lightspeed deployment to open it.
    6. If you don't see a deployment space, click New deployment space to create one.
    7. 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.
  3. To find your model_id if you are using a tuned model:
    1. Log in to the IBM Software Hub web client.
    2. To switch between experiences, click the Switch locations icon (Switch locations icon) in the toolbar
    3. Change the experience to IBM watsonx Code Assistant.
    4. Click the toolbar dropdown and select Deployments.
    5. Click your watsonx Code Assistant for Red Hat Ansible Lightspeed deployment to open it.
    6. 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.