Struggling with Azure OpenAI setting

Two (2) things to double check when it comes to using Azure OpenAI for your LLM usage in Cursor:

1. Ensure you are using the correct parameters

Deployment name

Take note that “Deployment Name” is different from “Model Catalog”. This means that you might have your own Deployment called “MyCompany-OpenAI-o1-preview” which uses model “o1-preview”.

:x: You’re not supposed to use o1-preview which is the model name. You’re supposed to use MyCompany-OpenAI-o1-preview.

On Azure Studio, from the sidebar you can find “Shared resources” > “Deployments” to find the deployment name. Don’t find deployment name under “model catalog”.

Base URL

The Base URL should look like this:

https://<your gcp agents resource name>.openai.azure.com

No other trailing path. It’s just that.

API Key

You can find the API key in OpenAI Studio > Home > API Key or OpenAI Studio > Shared Resources > Deployments > API Key.

2. Verify security restrictions on CIDR/IP

Make sure your GCP Agents Resource allows access from your machine’s IP address. This one you can find in GCP and not in Azure OpenAI Studio.


Afterwards, your Cursor should work correctly. Good luck!