Welcome to Microsoft Q&A Forum, thank you for posting your query here!
I understand that you are encountering an issue, your syntax of using chat completion seems wrong. It should be client.chat.completions,Instead of client.completetion for 1.X.X version and client.chatcompletion for 0.x.x version.
please refer below documentation: chat-completion-models
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.
Thank You.