vaayne / NotionAI-Plus

NotionAI Plus is a browser extension that adds NotionAI's powerful features to any website you visit
https://chrome.google.com/webstore/detail/notionai-plus/ilgkcoockdhdpkikaakkjacblhpmdmeo
MIT License
283 stars 27 forks source link

some questions about the chatgptweb engine #45

Closed animebing closed 8 months ago

animebing commented 1 year ago

Thanks for this great extension. In the notionai-plus extension, my default engine is chatgpt web and it works well, but one question confuses me a lot: I do not login to my chatgpt account(I log out first), but i still works. I am looking forward to your reply.

vaayne commented 1 year ago

That's weird. You can open the DevTools by following the screenshot and then checking the Network tab to view the requests.

image
animebing commented 1 year ago

I have checked the network tab as you say, I find at the time when I first quit ChatGPT, the plugin did not make a call to https://chat.openai.com/api/auth/session to obtain an access token, It used the cache within the plugin. However, after some time passed and I went to use the plugin again, it attempted to call https://chat.openai.com/api/auth/session, but returned a 401 UNAUTHORIZED

vaayne commented 1 year ago

That makes sense