@Mohd Mushahid Please see this SO thread with similar issue. As per the verified answer on SO thread:
Function support with the Azure API was added in 2023-07-01-preview, use:
openai.api_version = "2023-07-01-preview"
If you have a similar case, please try and check if it works. If you are still seeing an issue, please add additional details on how you are calling the Model endpoint along with other details like version of SDK, platform etc. Thanks!!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.