Configuring LLM connection
Connect Code Migrator, the AI feature of Cloudera Migration Assistant, to a large language model (LLM) endpoint that is compatible with the OpenAI API. You set the connection in the engine configuration of the Cloudera Migration Assistant engine.
| Field | Required | Default | Description |
|---|---|---|---|
| Enable LLM (llmEnabled) | No | On | Turns on the LLM connection, and deploys Code Migrator and the documentation search service. When it is off, the LLM fields are ignored, and Code Migrator and the documentation search service are not deployed. |
| LLM Provider (llmProvider) | No | openai |
The type of LLM endpoint. The drop-down list has one option, openai,
which is selected by default. The option stands for any endpoint that is compatible with
the OpenAI API, including Azure OpenAI. |
| LLM Base URL (llmBaseUrl) | When the LLM connection is on | None | The base URL of the LLM endpoint, for example https://api.openai.com/v1 or, for Azure OpenAI, https://resource.openai.azure.com/openai/v1. Must be an http
or https URL. |
| LLM API Key (llmApiKey) | When the LLM connection is on | None | The API key for the LLM endpoint. |
| LLM Model Name (llmModel) | When the LLM connection is on | gpt-5.2-codex |
The name of the model that the endpoint serves. For Azure OpenAI, the name of the Azure deployment. |
Cloudera Migration Assistant stores the API key in the [***INSTANCE***]-config-secrets Secret, and not in its database. The
web interface has no settings page for the LLM connection. When Enable
LLM is off, Code Migrator is not available.
- You are an Anywhere Cloud administrator.
- You have an LLM endpoint that is compatible with the OpenAI API, and that your organization approves for the data that Cloudera Migration Assistant sends to it.
- You have the base URL of the endpoint, an API key, and the name of a model or deployment that the endpoint serves.
- The Anywhere Cloud cluster can reach the endpoint over the network. See Network requirements.
When you turn on Enable LLM, Anywhere Cloud deploys Code Migrator and the documentation search service, and the Code Migrator item is displayed in the navigation pane of the web interface. When you turn it off, Anywhere Cloud removes them.
When you change the base URL or the model, the pods that use the LLM connection restart with the new values. To change only the API key, see Rotating LLM API key and Gitea password.
After you change the model, the Code Changes tab of earlier Code
Migrator jobs shows the new model, not the model that ran them. The Assisted-by
trailer of the commits of each job names the models that ran it. For CMA-5151, see Known issues and limitations in Cloudera Migration Assistant 2.0.0.
Cloudera Migration Assistant cannot check the API key or the model name when you save. If they are wrong, Code Migrator jobs return an error. The web interface does not display token use, and Cloudera Migration Assistant does not report cost. Check token use and cost with your LLM provider.
