Skip to content

Preparing LiteLLM access

This section describes how to configure the HCL Digital Experience (DX) IQ Integrator to authenticate with your LiteLLM proxy server using a static API key. This configuration allows the integration service to access your designated LLM providers and models.

Prerequisites

Before configuring DX IQ to access LiteLLM:

Using a static LiteLLM API key

The DX IQ Integrator uses the static LiteLLM API key to authenticate outgoing API requests sent to your LiteLLM proxy server. This key allows the integration service to access the configured LLM providers and models through the proxy. To use this path, you must have the following components:

  • A deployed and running LiteLLM proxy server
  • Two configured proxy models (iq-general-purpose and iq-summary)
  • A LiteLLM API key from your proxy administrator

Complete the following steps to configure and verify the static key:

  1. Create the LiteLLM API key secret in your namespace. The DX IQ Integrator reads the key from a Kubernetes secret named iq-litellm-api-secret:

    kubectl create secret generic iq-litellm-api-secret \
      --from-literal=virtualKey="<YOUR_LITELLM_API_KEY>" \
      --namespace <DX_NAMESPACE>
    
    • <YOUR_LITELLM_API_KEY>: The key provided by your LiteLLM proxy administrator.
    • <DX_NAMESPACE>: The Kubernetes namespace where DX is deployed (for example, dxns).

    If the secret already exists from a previous installation, delete the secret first and then recreate it:

    kubectl delete secret iq-litellm-api-secret -n <DX_NAMESPACE>
    kubectl create secret generic iq-litellm-api-secret \
      --from-literal=virtualKey="<YOUR_LITELLM_API_KEY>" \
      --namespace <DX_NAMESPACE>
    
  2. Update your custom-iq-values.yaml file with the LiteLLM URL if you haven't already:

    In your custom-iq-values.yaml file (created in Deploying DX IQ services), ensure the LiteLLM URL is set:

    configuration:
      litellm:
        liteLlmUrl: "<YOUR_LITELLM_URL>"
    
    environment:
      pod:
        integrator:
          # Workaround: Set LITELLM_BASE_URL to the same value as liteLlmUrl.
          # The hot-reload code path reads LITELLM_BASE_URL from the environment instead of LITELLM_URL.
          - name: "LITELLM_BASE_URL"
            value: "<YOUR_LITELLM_URL>"
    

    <YOUR_LITELLM_URL>: The URL of your LiteLLM proxy server (for example, https://litellm.example.com). Set this value for both configuration.litellm.liteLlmUrl and the LITELLM_BASE_URL environment variable. You can skip this step if you already set both values during the initial installation of the DX IQ Integrator.

  3. Upgrade the DX IQ deployment with your custom-iq-values.yaml file:

    helm upgrade <IQ_RELEASE_NAME> \
      https://<YOUR_REPOSITORY_FQDN_AND_PATH>/<IQ_HELM_CHART_VERSION>.tgz \
      --namespace <DX_NAMESPACE> \
      -f custom-iq-values.yaml
    
    • <IQ_RELEASE_NAME>: The DX IQ Helm release name (for example, dx-iq).
    • <YOUR_REPOSITORY_FQDN_AND_PATH>: The repository fully qualified domain name (FQDN) and path.
    • <IQ_HELM_CHART_VERSION>: The DX IQ Helm chart version.
  4. Monitor the rollout status of the deployment:

    kubectl rollout status deployment/<IQ_RELEASE_NAME>-integrator -n <DX_NAMESPACE>
    
  5. Check the logs for static key confirmation:

    kubectl logs -n <DX_NAMESPACE> deployment/<IQ_RELEASE_NAME>-integrator | grep -i "LITELLM_API_KEY configured statically"
    
  6. Confirm that the output contains the message LITELLM_API_KEY configured statically.

    If you see this message, your static LiteLLM API key is correctly configured.

  7. Send a test message through the DX IQ chat interface to verify that you receive an AI-generated response without errors.

Next steps

After configuring DX IQ Integrator authentication with your LiteLLM proxy server:

  1. Validate your deployment.
  2. Enable and configure the DX IQ assistant.
Related information