Yicli I'm glad that your issue is resolved and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.
Error Message:
I trie to follow the structure out of 4-o https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/structured-outputs?tabs=python-secure
And I meet this error {'message': 'Structured output is not allowed.', 'type': 'invalid_request_error', 'param': None, 'code': None} even when I use the example code.
Solution:
I just deploy a new model as the old. And it works again.
I think I can simply use the new one
If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.