getcursor / cursor

The AI Code Editor
https://cursor.com
25.27k stars 1.57k forks source link

Add BaseURL for openai #909

Open Travis-55 opened 1 year ago

Travis-55 commented 1 year ago

add a feature where u can add BasePath for openai

blankuserrr commented 1 year ago

I'd also like to see this feature implemented, I am using OpenRouter and this would be very helpful to me.

EIIisD commented 1 year ago

Yeah this would be game-changing.

tranhoangnguyen03 commented 1 year ago

bump

tonydavis629 commented 8 months ago

Yes this would be amazing to not be stuck with GPT4

sFritsch09 commented 2 months ago

This is already implemented and can be closed, just use your API endpoint for example OpenRouter in cursor settings > OpenAI > Override OpenAI Base URL:

https://openrouter.ai/api/v1

Currently the functionality is limited to models that are not currently available in Cursor, such as the mistralai/codestral-mamba model

Manouchehri commented 2 months ago

@sFritsch09 I'm getting Invalid OpenAI API Key, despite setting my base URL. It looks like the request isn't even going to my endpoint.

image
sFritsch09 commented 2 months ago

@Manouchehri Try the following:

Manouchehri commented 2 months ago

@sFritsch09 I got it working, it's because of CORS.

vale46n1 commented 2 months ago

@sFritsch09 I got it working, it's because of CORS.

Can you give a bit more details? Currently i cannot find a way to use openrouter in cursor

hujh818 commented 1 month ago

@sFritsch09 I got it working, it's because of CORS.

@sFritsch09 I got it working, it's because of CORS. i have encountered the same problem, how did you fix it @Manouchehri