Configured LLMs
Below the Add LLM Configuration form, the Configured LLMs table lists all saved configurations with the following columns:
| Column | Description |
|---|
| Actions | Edit or delete the configuration |
| Config Alias | The unique name given to the configuration |
| Provider | The selected LLM provider |
| Model | The model name |
| API Key | Masked display of the stored API key |
Note: Disclaimer: The listed models/services are offerings of third-party providers supported for use with AI Services. Adobe does not own, control, or operate them. All names, trademarks, and associated branding are the property of their respective third-party owners and are used for identification purposes only. Their inclusion does not imply any partnership with, endorsement by, or sponsorship of Adobe.
<cfscript>
//add chat model config via admin ui/api/cfsetup with these 3 details , save config name as anth
//chatModelConfig = {
// PROVIDER: "anthropic",
// APIKEY: "#application.anthropicKey#",
// MODELNAME: "claude-sonnet-4-5"
// };
chatModel = ChatModel("anth");
response = chatModel.chat("What is 2 + 2?");
hasResponse = len(response.message ?: "") > 0;
containsFour = findNoCase("4", response.message ?: "") > 0 ||
findNoCase("four", response.message ?: "") > 0;
writeOutput("provider:anthropic | operation:basicChat | hasResponse:" & (hasResponse ? "YES" : "NO") & " | correctAnswer:" & (containsFour ? "YES" : "NO"));
agent = Agent({CHATMODEL : chatModel});
res = agent.chat("hello");
writeDump(res);
</cfscript>
Example 2
An OpenAI configuration named "myopenai" is saved, containing the provider and model name. Additional configuration parameters can be passed to override any existing values in the saved configuration, regardless of whether those parameters were originally defined.
<cfscript>
chatModel = ChatModel("myopenai", { apiKey : "#application.apiKey#" });
response = chatModel.chat("What is 2 + 3? how did to calculate it?");
writeDump(var=response);
</cfscript>