gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.5k stars 760 forks source link

Need to add isGoogleLogin to settings #36

Closed Andrew-Gee closed 1 year ago

Andrew-Gee commented 1 year ago

With the auto-login settings, can you add the isGoogleLogin option, from the chatgpt-api?

From chatgpt-api readme:

Alternatively, if your OpenAI account uses Google Auth, you shouldn't encounter any of the more complicated Recaptchas — and can avoid using these third-party providers. To use Google auth, make sure your OpenAI account is using Google and then set isGoogleLogin to true whenever you're passing your email and password. For example:

const api = new ChatGPTAPIBrowser({
  email: process.env.OPENAI_EMAIL,
  password: process.env.OPENAI_PASSWORD,
  isGoogleLogin: true
})
gencay commented 1 year ago

Hi there, this extension is no longer using chatgpt-api for its browser-based autologin flow. If you'd like to use the google/microsoft login instead of usual login, you should not provide email/password in your setting. Since those login flows use their respective auth methods (not via openai, e.g. on accounts.google.com and login.microsoft.com).

gencay commented 1 year ago

@Andrew-Gee I was able to spare some time to implement this over the weekend. Please update to v3.2.0 for using Google/Microsoft auth flows for browser-based autologin method.

image