CursorLens icon indicating copy to clipboard operation
CursorLens copied to clipboard

no toggle buttin to use OpenAI Keys

Open din77 opened this issue 1 year ago • 10 comments

Screenshot 2024-08-23 at 7 15 35 PM

Im using Claude and Im using my own api keys, but when i enter my ngrok API endpoint under Open AI, I still don’t t see the toggle button to use OpenAI Keys. do i need an Open AI key or is it because I updated cursor ai?

din77 avatar Aug 23 '24 23:08 din77

Can you put a dummy key in the OpenAI key field? That will not be used anyway, so you can put some string to see if the toggle shows up

HamedMP avatar Aug 24 '24 12:08 HamedMP

I did that and still nothing showed up. I actually added a real key.

din77 avatar Aug 24 '24 17:08 din77

Oh interesting, which version of Cursor do you have?

On Sat, 24 Aug 2024 at 19:22, din77 @.***> wrote:

I did that and still nothing showed up. I actually added a real key.

— Reply to this email directly, view it on GitHub https://github.com/HamedMP/CursorLens/issues/17#issuecomment-2308462896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4UYF2DCG2VTI7JWXHHFDLZTC6OXAVCNFSM6AAAAABNBAEALWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYGQ3DEOBZGY . You are receiving this because you commented.Message ID: @.***>

HamedMP avatar Aug 24 '24 17:08 HamedMP

And did you press both Verify and Save?

HamedMP avatar Aug 24 '24 17:08 HamedMP

Screenshot 2024-08-24 at 2 40 21 PM

Only claude and azure got the toggle switch ( and i never used azure) _ got version - Version: 0.39.6 VSCode Version: 1.91.1

din77 avatar Aug 24 '24 18:08 din77

Hi, is this still the case? @din77

HamedMP avatar Nov 02 '24 21:11 HamedMP

I have this same issue Cursor Version: 0.42.4 VSCode Version: 1.93.1 Commit: b1e87884330fc271d5eb589e368c35f14e76dec0 Date: 2024-10-29T17:17:29.347Z Electron: 30.4.0 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 24.1.0

Screenshot 2024-11-13 at 7 01 36 PM

chrispmonkey avatar Nov 14 '24 03:11 chrispmonkey

I cannot complete the configuration with the key from Anthropic API.

It used to be possible to provide a link to the Anthropic API in the OpenAI API section, enter the address from ngrok and it worked, but it is currently impossible to verify a key there that is not an OpenAI key, so it will not be saved.

The Anthropic API Key section also lacks the possibility to overwrite the Base URL.

Image

Cursor Version: 0.45.9 VSCode Version: 1.96.2

bronisMateusz avatar Feb 03 '25 20:02 bronisMateusz

Hi,

Thanks for sharing the screenshot.

You only need to specify the Base URL to the ngrok one and a dummy OpenAI model (and use a GPT model when using the Chat or Composer.

The main setting for your API key will be in .env file and to add models (and activate them) will be from the dashboard of Cursorlens.

I need to make the documentation more clear. After running the App, the configuration page is where you set which LLM to route the query to (Cursorlens is like a proxy server)

https://www.cursorlens.com/docs/pages/config

Let me know if you have any questions and I’d be happy to help.

On Mon, 3 Feb 2025 at 21:06, Mateusz Bronis @.***> wrote:

I cannot complete the configuration with the key from Anthropic API.

It used to be possible to provide a link to the Anthropic API in the OpenAI API section, enter the address from ngrok and it worked, but it is currently impossible to verify a key there that is not an OpenAI key, so it will not be saved.

The Anthropic API Key section also lacks the possibility to overwrite the Base URL. Zrzut.ekranu.2025-02-3.o.21.02.37.png (view on web) https://github.com/user-attachments/assets/a67f852e-8731-46fa-b879-dff7f3cf6bc3

— Reply to this email directly, view it on GitHub https://github.com/HamedMP/CursorLens/issues/17#issuecomment-2631958873, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4UYFY6KCIBTR2QB223ZQT2N7D2TAVCNFSM6AAAAABNBAEALWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZRHE2TQOBXGM . You are receiving this because you commented.Message ID: @.***>

HamedMP avatar Feb 05 '25 18:02 HamedMP

The way you are talking about will not work if someone does not have funds in their Open AI account. Cursor currently checks that the limits on the Open API account have not been used:

Image Image

bronisMateusz avatar Feb 08 '25 10:02 bronisMateusz