Hi @Ruslan Levond Welcome to Microsoft Q&A! Thanks for posting the question. I have tried the Python example code you are referring to and got the results correctly with GPT-4-1106 preview
model version. (see screenshot below)
Which model you are trying to use? Also, which openai package version you are using? I have tried with openai version 1.9.0.
Thanks
Saurabh