Skip to main content

Adding Models

This section explains the steps to add Cloudera models and configure the required access controls.
1

Select Cloudera as the provider

From the TrueFoundry dashboard, go to AI Gateway > Models, click Add Model and choose To New Provider Account. Select Cloudera from the provider list.
Add Provider Account page listing the supported model providers

Choose a provider in Add Provider Account

2

Add Cloudera Account and Authentication

Give a unique name for the Cloudera account. This will be used to refer to the models later. Provide the authentication details for the AI Gateway to access your Cloudera CDP environment. TrueFoundry supports both CDP Workload Authentication (recommended) and Auth Token based authentication.
Cloudera Configure Account form in the provider account setup drawer

Configure Account for Cloudera

Using CDP Workload Authentication (Recommended):CDP Workload Authentication is the recommended approach for production environments as it provides better security and access control. This method generates secure workload tokens using your Access key and private key.Choose CDP Workload Auth Token.
  • Enter your Access Key ID, Private Key, and Workload Name.
  • Enter your CDP Base URL. This is the base URL for CDP API services used for authentication token generation. You can find your CDP Base URL in your Cloudera CDP environment settings or documentation.
Store your Private Key in a Secret Group and reference it using the secret’s Fully Qualified Name (FQN) in the Private Key field. This ensures your private key is securely managed and not exposed in plain text.
The CDP Base URL is different from the Model Base URL. The CDP Base URL is used for authentication token generation, while the Model Base URL (configured per model) is used for inference requests.
Using Auth Token:Auth Token is suitable for development and testing environments.
  • Choose Token Auth.
  • Enter your pre-generated Auth Token. You can generate this token using the CDP CLI or from your user profile settings.
3

Add Models

Click Add Model Manually to add a new model configuration. Provide the following:
  • Model ID: The unique identifier of the model in the Cloudera Model Registry. This is used in the request body and can differ from the endpoint name in the URL. Find this in the Cloudera CDP Model Registry or Model Endpoint Details UI.
  • Base URL: The model endpoint URL up to /v1. Copy the full endpoint URL from your Cloudera AI Inference service and remove the last two path components (e.g., remove /chat/completions). The Base URL should end with /v1.
Cloudera model configuration form in TrueFoundry with display name, model ID, and base URL fields

Add Cloudera Model in TrueFoundry

4

Save and grant access

Click Test Credentials to check the account against the selected models, or click Save without Testing. To keep the account in Git instead, click Apply using YAML and apply the generated spec with tfy apply.To let other users, teams or virtual accounts use or manage these models, open Manage Accounts, click ⋮ on the account and choose Access Control > Grant Access. See Access control.

Inference

After adding the models, you can perform inference using an OpenAI-compatible API via the Playground or by integrating it with your own application.
Code Snippet and Try in Playgroud Buttons for each model

Infer Model in Playground or Get Code Snippet