AIHas()
Checks whether a specific AI endpoint is configured and available for use.
AIHas( name=string );
Returns: Boolean
| Argument | Description |
|---|---|
|
name
string,
required
|
edit
The name of the AI endpoint to check. Can be either:
Alias: aiName, nameAI |
Examples
edit// Checks if the AI service named "test_ai" exists
AIHas("test_ai");
See also
- AI / LLM Integration
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)