接下来选择 2. Get Github Copilot token by Github Copilot CLI ,然后浏览器访问 https://github.com/login/device ,填入授权码即可得到 Token。
$ bash -c "$(curl -fsSL https://raw.githubusercontent.com/aaamoon/copilot-gpt4-service/master/shells/get_copilot_token.sh)"Github Copilot token Tools [v0.0.2] # 1. 这里要选择 2> Get Github Copilot token Tools [v0.0.2] ————————————————- 1. Get Github Copilot token by IDEA Github Copilot plugin 2. Get Github Copilot token by Github Copilot CLI ————————————————- 0. ExitPlease enter a number [0-2]: 2github-copilot-cli is not installed. Installing...added 247 packages, and audited 248 packages in 32s54 packages are looking for funding run `npm fund` for details2 moderate severity vulnerabilitiesTo address all issues (including breaking changes), run: npm audit fix --forceRun `npm audit` for details.npm noticenpm notice New major version of npm available! 8.19.2 -> 10.3.0npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0npm notice Run npm install -g [email protected] to update!npm noticeGithub Copilot CLI token not found. Please authorize.Copy this code: 1FBE-97DC # 2. 浏览器访问 https://github.com/login/device,然后填入这个 CODEThen go to https://github.com/login/device, paste the code in and approve the access.Failed to authenticate: You do not have access to GitHub Copilot CLI. Please join the waitlist at https://githubnext.com/projects/copilot-cli/., Unable to verify waitlist access.Your Github Copilot CLI token : <your token>* Press Enter to return to the main menu. *