Hi @Samriddha Adhikary , Thanks for using Microsoft Q&A Platform.
There could be many reasons affecting this. It's possible that there are some configuration issues with your virtual network or private endpoint that are preventing your Python code from accessing your Azure OpenAI instance.
To ensure that your virtual network and private endpoint are correctly configured, I would recommend following the steps outlined here: https://learn.microsoft.com/en-us/azure/cognitive-services/cognitive-services-virtual-networks?context=%2Fazure%2Fcognitive-services%2Fopenai%2Fcontext%2Fcontext&tabs=portal
If you're still having trouble after checking these, please provide more details about the error message or any error logs you're seeing.
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.