Lucee Function Reference
aihas()
Checks whether a specific AI endpoint is configured and available for use.
Example
aihas(string name):boolean
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Yes |
The name of the AI endpoint to check. Can be either: 1. A direct endpoint name as configured in the Lucee Administrator 2. A default reference (e.g., "default:exception") which will check if a default endpoint is configured for that category |