Skip to content

Integrating with GitHub Copilot (or other AI IDEs) #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
davefellows opened this issue Dec 12, 2024 · 2 comments
Open

Integrating with GitHub Copilot (or other AI IDEs) #11

davefellows opened this issue Dec 12, 2024 · 2 comments

Comments

@davefellows
Copy link

Hi,

Firstly, great work with this project, looks very cool!

Is there a way to integrate this with GitHub Copilot in VS Code? Or other IDEs like Cursor and Windsurf?

Thanks!

@davefellows
Copy link
Author

I see Cursor allows you to override the OpenAI Base URL so that should work.

@callbacked
Copy link
Owner

callbacked commented Dec 15, 2024

Provided that you can supply a URL from an OpenAI Compatible API source, I would say its possible with the AI-based IDEs.

Cursor (don't know about the other AI IDEs) has been a tough one. Despite being able to "override" the URL, you can't get it to point to localhost URLs as it will just fail -- which has been a big complaint with folks who use Ollama or any locally hosted API (like this project).

Because of this, there are proxy workers people have made to get their locally hosted APIs to work with Cursor, like this project for Ollama. It works by passing all API calls through an ngrok instance, and supplying that instance's URL in Cursor.

Early on during my development of the API, I made my own proxy worker too for the purpose of connecting this API through Cursor (to test out) and it works perfectly, though I don't use Cursor and didn't figure there was a need to use it with this IDE in particular.

Screen.Recording.2024-12-15.at.4.49.50.PM.mp4

Looking back, I can look into integrating a compatibility mode for Cursor in the base API, such that you run it with a flag --cursor_compatibility [NGROK_TOKEN_HERE]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants