Azure OpenAI API key not working

I am new to Cursor. I configured my Azure OpenAI key.

But it is giving me the following error:

{
  "error": {
    "message": "Unrecognized request arguments supplied: metadata, system",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

What am I doing wrong? Also, there is no place where I can give the API version.

Additional details (Request Id): f7ffdae1-f661-4e16-b8af-2ca3e36366b9

  1. Ensure you are using the correct values
  2. Ensure your GCP Agents Resource permits network requests from your device’s IP address

Clear step-by-step instructions with images: Struggling with Azure OpenAI setting - #15 by darrensapalo