@Orlando Herrera Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
.
Please follow the below action plans:
- assign the RBAC role Cognitive Services Contributor and Cognitive Services OpenAI User to the user (Service principal) from Azure portal for your Azure Open AI resource.
- Enable the managed identity for your webapp and then give the same above RBAC permission on Azure OpenAI resource.
- Then test this from your application and check if that helps.
.
Awaiting your reply.