SQL AI functions not working

Michael_Galli
Databricks Partner

I am working in the following environment:

- New Databricks workspsace with UC enabled
- Azure, region west-europe
- Cluster: Interactive (DBR 15.4), or SQL Warehouse (Serverless)

Running for example:

SELECT ai_gen('Generate a concise, cheerful email title for a summer bike sale with 20% discount');

Error:
[REMOTE_FUNCTION_MISSING_REQUIREMENTS_ERROR] Failed to evaluate the ai_gen SQL function because 'Databricks Foundation Models API is not available for your workspace'. Check requirements in https://docs.databricks.com/en/machine-learning/foundation-models/index.html. Please fix the problem indicated in the error message and retry the query again. SQLSTATE: 57012
 
Any idea what might be the problem? Thanks!