With the suggested changes, Azure OpenAI Chat API is supported in a basic way.
Note that there is still no support on the front-end. The model selection on the front-end won't have an effect for Azure OpenAI. That is defined by the deployment name in the environment variables only.
As a next step the users can be enabled to provide the azure deployment name on the UI if the provider is Azure.
With the suggested changes, Azure OpenAI Chat API is supported in a basic way.
Note that there is still no support on the front-end. The model selection on the front-end won't have an effect for Azure OpenAI. That is defined by the deployment name in the environment variables only.
As a next step the users can be enabled to provide the azure deployment name on the UI if the provider is Azure.