cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Support API keys for the Azure OpenAI Service

Open dolphinsboy opened this issue 2 years ago • 12 comments

Support azure openai

dolphinsboy avatar May 11 '23 10:05 dolphinsboy

Hey, the Cursor team currently works directly with OpenAI to build the service, so I believe it would be unlikely for them to support Azure OpenAI any time soon. However, I'll leave your issue open as a potential future enhancement.

danperks avatar May 15 '23 14:05 danperks

We could probably offer this! What sort of info would you need to specify? The API version, API base, and API key? Do your python scripts with azure look like this: Screenshot 2023-05-18 at 10 56 24 PM

truell20 avatar May 19 '23 05:05 truell20

Yes, I am very excited about this feature. @truell20

dolphinsboy avatar Jun 01 '23 06:06 dolphinsboy

I will like that too, mostly because I had already setup this and I get it working

Damianjsp avatar Aug 20 '23 19:08 Damianjsp

I have configured the correct Azure API, but it does not work 微信图片_20230822091335 微信图片_20230822091137

z4656207 avatar Aug 22 '23 01:08 z4656207

As of https://changelog.cursor.sh/#0233---azure-support this is implemented... Is there any plan to create documentation around this?

seancswanson avatar Aug 22 '23 01:08 seancswanson

You can use Azure OpenAI by following these steps

  1. Click the settings icon on the top right
  2. Scroll down to Advanced and you will see such an option image

blacksmithop avatar Aug 25 '23 05:08 blacksmithop

I have configured the correct Azure API, but it does not work 微信图片_20230822091335 微信图片_20230822091137

Azure OpenAI Service can be used for the chat and edit. However, as @z4656207 pointed out, it is not yet compatible with the "New AI Project". It hangs at the Step 0.

gijigae avatar Aug 26 '23 11:08 gijigae

I have configured the correct Azure API, but it does not work 微信图片_20230822091335 微信图片_20230822091137

Azure OpenAI Service can be used for the chat and edit. However, as @z4656207 pointed out, it is not yet compatible with the "New AI Project". It hangs at the Step 0.

Can confirm this is the case.

thejackwu avatar Aug 28 '23 22:08 thejackwu

Another issue is that it seems that currently only one deployment/model is supported.

If I want to use gpt-4o via Azure for chat and gpt-4o-mini via Azure for in line editing it does not work I think.

illgitthat avatar Aug 21 '24 16:08 illgitthat

s there way where we can set custom headers for Azure OpenAI in cursor models settings? headers like Ocp-Apim-Subscription-Key .. etc. for azure openai custom models deployments.

mallapraveen avatar Sep 03 '24 17:09 mallapraveen

@truell20 if you have the time, it would be great to get a comment from the team on plans for further azure support.

illgitthat avatar Sep 03 '24 18:09 illgitthat

It would be nice to add support for multiple deployment. For standard OpenAI a single api key let you use all models, for azure OpenAI we need to create a deployment for each model. Maybe using comma separated values in deploymentname field?

Also I'd like to know when I use chat when I'm using model from azure, it would be nice if the model name is called azure-{deploymentname}

alkampfergit avatar Sep 18 '24 14:09 alkampfergit

@mallapraveen @alkampfergit Both of these are great suggestions, but could you possible open a new issue for them? I'll close this one for now as the original issue has been resolved, but as you've both said, could benefit from further development.

danperks avatar Sep 18 '24 14:09 danperks