Error when connecting to Azure Open AI Service from Microsoft Fabric Notebook
When trying to access Azure Open AI Service with openai==1.61 from a Microsoft Fabric notebook, an error occurs. The issue can be replicated with the following code snippet. Fortunately, a solution has been discovered for this problem. Check out the image below for a quick start guide on OpenAI Realtime API Integration.

The error is rooted in a recent change in httpx, a dependency of openai. Installing openai with `pip install -U openai` leads to the installation of httpx==0.28.1, which triggers the error. A simple workaround for this is to run `pip install -U openai httpx==0.27.2`. Alternatively, you can also incorporate the following code snippet to address the issue.
Please note that commenting on this topic is restricted to registered users. If you are already a registered user, kindly sign in. If not, please proceed to register and then sign in to post your comments.
For more information and related updates, you can refer to the Microsoft Fabric challenge.