-
Notifications
You must be signed in to change notification settings - Fork 162
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
What token to use for Github #502
Comments
I believe these are the relevant settings: https://github.com/settings/copilot (screenshot below). |
Getting "Copilot on github.com" enabled, I was able to progress to a different error: I tried to create a classic token, with "copilot" permission; gives 401 Bad credentials Any inputs on what permission are necessary (or any hints, what so ever) is much appreciated :) |
Hello, I'm the one who implemented the GitHub support for gptel (see #386). Sorry if the current description is misleading, but it only supports GitHub Models (here is a blog post about it), which basically exposes APIs for multiple LLMs, so GitHub users can interact with them. I use it with that and it works prefectly. For Copilot, there's copilot.el + copilot-chat.el For use with gptel, maybe someone with access to it could extend the GitHub support (but for it to be good I think completion support would have to be implemented). EDIT 1: As for token permissions, the token works without any of them ticked |
Briefly describe what you are trying to do
Set up gptel to use Github Copilot
Installed
gptel
withpackage-install
Created token from https://github.com/settings/tokens (Tried both "classic" and "fine-grained")
Set up gptel in emacs,
init.el
:Started gptel buffer:
M-x gptel
Selected default (I.e. "Github Models" from above)
Entered prompt and press
C-c RET
Expected: Some response from the LLM, entered into the buffer.
Received:
*Github Models*
)*gptel-log*
(full content below): 401 Your account type is not currently supportedIs there anyone able to provide some guidance on what I am missing here? (Apparently some permission/role from my GH org. but which?)
Would be greatly appreciated :)
Additional context
Emacs version: GNU Emacs 28.2
Operating system: Debian on 12 on WSL
**
gptel.log
**The text was updated successfully, but these errors were encountered: