cursor icon indicating copy to clipboard operation
cursor copied to clipboard

'Override OpenAI Base URL' Docs?

Open tonydavis629 opened this issue 1 year ago • 4 comments

This option seems to make it possible to replace openai with another LLM provider. What are the requirements for this alternative? How can we use this? Are there docs anywhere?

I would ideally like to point cursor at a service like cryptotalks.ai that can access multiple LLM service providers, but I'm unsure how this option works. Does the endpoint need to be exactly '/chat/completions'?

tonydavis629 avatar Mar 05 '24 01:03 tonydavis629

Yep! Needs to correspond exactly to OpenAI's chat completions API.

truell20 avatar Mar 15 '24 20:03 truell20

Yep! Needs to correspond exactly to OpenAI's chat completions API.

Seriously? How? Groq.com for example has https://api.groq.com/openai/v1/chat/completions but where do we put the API key in Cursor?

jakezz avatar Mar 16 '24 16:03 jakezz

Having the same API doesn't seem to be the only requirement. I'm getting failures from my service at https://cryptotalks.ai/v1 despite having the same API which works normally in the OpenAI clients.

tonydavis629 avatar Mar 20 '24 22:03 tonydavis629

I can confirm getting failures as well trying to use Lambda's Inference API https://api.lambda.ai/v1

GenPage avatar Apr 23 '25 22:04 GenPage