danielgross / localpilot

MIT License
3.32k stars 141 forks source link

Do you need a subscription to Github Copilot for this to work? #12

Open kjunggithub opened 9 months ago

kjunggithub commented 9 months ago

Not obviously stated in the README and I don't see any error output in the CLI.

[INFO] [auth] [2023-10-04T14:22:44.353Z] Invalid copilot token: missing token: 403 
[ERROR] [default] [2023-10-04T14:22:44.354Z] Extension activation failed: "No access to GitHub Copilot found. You are currently logged in as [username]."
tzsoulcap commented 9 months ago

In my case, I simply installed the "GitHub Copilot" extension and logged in. After that run app.py

changeling commented 9 months ago

In my case, I simply installed the "GitHub Copilot" extension and logged in. After that run app.py

I believe the OP is asking whether it's required to log in. I assume the hope is that localpilot might be used without any interaction with GitHub online.

timothyallan commented 9 months ago

That's why I ended up not using this, as you do need an account... which I don't want to set up. Copilot extension kept failing with auth errors without a valid subscription.

skeie commented 9 months ago

I don't understand, what's the benefit of this module if you need copilot account?

changeling commented 9 months ago

For folks who have an account, but have sketchy internet, or travel frequently with periods of no connectivity, or any other reason they might not have access, this is a great tool.

Personally, I'd love to use it to experiment with local models without a copilot account, but as it is, it does have value for those who have one.

You might want to play with the Continue VS Code extension, which doesn't require an account anywhere.

peterc commented 9 months ago

A probably related and mildly amusing story: I downloaded the models and set up localpilot prior to going on a transatlantic flight earlier today. Up at 40,000 feet, I started up VS Code and.. it needed to connect to api.github.com to authenticate before the proxy would work, so sadly my experiment coding in the skies with AI failed this time :-) All good now I'm at my hotel though!

janEbert commented 9 months ago

I've started using a local ChatGPT API instead, which works all the same with this while not requiring a CoPilot subscription.

Of course, you lose the benefits of all the nice CoPilot prompting.

siilats commented 8 months ago

I've started using a local ChatGPT API instead, which works all the same with this while not requiring a CoPilot subscription.

Of course, you lose the benefits of all the nice CoPilot prompting.

I use CodeGPT from https://github.com/carlrobertoh/CodeGPT it also has some free LLMs