Skip to content

Preparing LiteLLM access

This section describes how to configure the 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 IQ to access LiteLLM:

Using a static LiteLLM API key

The 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 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.

    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 IQ services), ensure the LiteLLM URL is set:

    configuration:
      litellm:
        liteLlmUrl: "<YOUR_LITELLM_URL>"
    

    <YOUR_LITELLM_URL>: The URL of your LiteLLM proxy server (for example, https://litellm.example.com). You can skip this step if you already set the URL during the initial installation of the IQ Integrator.

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

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

    kubectl rollout status deployment/dx-iq-integrator -n <DX_NAMESPACE>
    

    <DX_NAMESPACE>: The DX deployment namespace.

  5. Check the logs for static key confirmation:

    kubectl logs -n <DX_NAMESPACE> deployment/dx-iq-integrator | grep -i "LITELLM_API_KEY configured statically"
    
  6. Confirm that the output matches the following log entry:

    [DeploymentKey] LITELLM_API_KEY configured statically, skipping KMS flow
    

    If you see this message, your static LiteLLM API key is correctly configured, and KMS flow was skipped.

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

Next steps

After configuring IQ Integrator authentication with your LiteLLM proxy server:

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