# Discourse AI plugin update breaks Azure AI compatibility

**URL:** <https://meta.discourse.org/t/discourse-ai-plugin-update-breaks-azure-ai-compatibility/309739>\
**Category:** Bug\
**Tags:** ai, fixed\
**Created:** [May 28, 2024, 6:03pm UTC](https://meta.discourse.org/t/discourse-ai-plugin-update-breaks-azure-ai-compatibility/309739 "2024-05-28T18:03:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Yiffyi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yiffyi/32/389070_2.png) [@Yiffyi](https://meta.discourse.org/u/Yiffyi)\
**Post date:** [May 29, 2024, 6:22am UTC](https://meta.discourse.org/t/discourse-ai-plugin-update-breaks-azure-ai-compatibility/309739/4 "2024-05-29T06:22:54Z")

</div>

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)](https://github.com/discourse/discourse-ai/blob/d812ecf5da8ebc4644f5e3596bfe2484d0e33a0c/lib/completions/endpoints/open_ai.rb#L37) function, but not used in the actual [model\_uri](https://github.com/discourse/discourse-ai/blob/d812ecf5da8ebc4644f5e3596bfe2484d0e33a0c/lib/completions/endpoints/open_ai.rb#L91) function.

Thank you for your time fixing this 💖

---

_[View the full topic](https://meta.discourse.org/t/discourse-ai-plugin-update-breaks-azure-ai-compatibility/309739)._
