Unrecognized request argument supplied : Functions

As I am trying to use a function parameter in my chat completion API, it’s not working as it’s throwing an error. So, is there any specific version I should install or change any GPT model as I deploy my model on Azure OpenAI?

So kindly look into this if someone has any expertise regarding this error. I’m attaching the error below as well.

As the error i m getting -

InvalidRequestError                       Traceback (most recent call last)
Cell In[11], line 3
      1 user_message="I want to make sales agreement.as property is purchase by Nikhil at 2000000."
      2 messages.append({"role":"user","content":user_message})
----> 3 completion = openai.ChatCompletion.create(
      4     engine=deployment_name,
      5     messages=messages,
      6     functions=tools)

File c:\Function_calling_openai\env\lib\site-packages\openai\api_resources\chat_completion.py:25, in ChatCompletion.create(cls, *args, **kwargs)
     23 while True:
     24     try:
---> 25         return super().create(*args, **kwargs)
     26     except TryAgain as e:
     27         if timeout is not None and time.time() > start + timeout:

File c:\Function_calling_openai\env\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py:153, in EngineAPIResource.create(cls, api_key, api_base, api_type, request_id, api_version, organization, **params)
    127 @classmethod
    128 def create(
    129     cls,
   (...)
    136     **params,
    137 ):
    138     (
...
    766         rbody, rcode, resp.data, rheaders, stream_error=stream_error
    767     )
    768 return resp

InvalidRequestError: Unrecognized request argument supplied: functions