The latest update to the Discourse AI plugin broke compatibility with Azure AI, resulting in a 400 error due to an unknown parameter “stream_options” Yiffyi. This parameter is not present in the latest Azure AI API definition. Roman_Rizzi fixed the issue with a pull request. However, another problem was discovered where the plugin uses the endpoint configured for GPT-4 instead of GPT-4o Yiffyi. The site setting for GPT-4o is read but not used in the actual model_uri function.
Hi! I updated the plugin and it works on Azure AI now. However, I found a new problem that the plugin seems to be using the endpoint configured for gpt-4 instead of gpt-4o.
The site setting of gpt-4o is only read at has_url?(model) function, but not used in the actual model_uri function.