Allow filtering of specific models for use
Describe your feature request
When ChatUI starts and queries the /models endpoint of an Azure Foundry AI instance, over 400+ models are returned. This is, essentially, the entire Azure catalog and includes models that are not even provisioned within the specific OpenAI instance. This causes user frustration and confusion, as they must now pick out the single model out of the list of 400+ models on the UI.
In previous versions of ChatUI, it was possible to override the model list with the MODELS= environment variable. This behavior has seemed to have changed now so that MODELS= instead acts as behavioral override of models returned from the /model endpoint, and not a definitive list.
Screenshots (if relevant)
Implementation idea
Is it possible to filter out the not available models on the ChatUI-side? Either by maybe an environment variable that is an array of strings that represent the "allowed" models?
MODELS_ALLOWED=gpt-5.6-terra,gpt-4o-prod
Or if I am going about this the wrong way, should this be done by enabling the model router instead and then only allowing a single model in the model auto-router?
Source: huggingface/chat-ui