AMROUN Lysa Greetings!
This error indicates that your authentication credentials are invalid. This could happen for several reasons, such as your API key is missing or invalid, or the endpoint is incorrect.
Please make sure that you have a valid API key and endpoint for GPT-4o.
Also, make sure that you are using latest and updated python versions, Openai and api_version.
See the similar issue which has been addressed here and let me know if that helps.