KudoAI / chatgpt.js

🤖 A powerful, open source client-side JavaScript library for ChatGPT
https://chatgpt.js.org
MIT License
1.86k stars 122 forks source link

ChatGPT Request Not Initiating on Other Browser Pages or Directly from background.js #150

Open giridhar196 opened 11 months ago

giridhar196 commented 11 months ago

After adding the starter pack to my website, I encountered an issue. When I restart the extension and refresh the browser page, the request is not being made until I navigate to the chat.open.ai page. Is there a solution to call ChatGPT in the background from other pages?

adamlui commented 11 months ago

sup @giridhar196 currently it only works on chat.openai.com but it is definitely possible to call ChatGPT on other pages, just I didn't add those methods to chatgpt.js yet (but you can see how i do it in https://github.com/KudoAI/duckduckgpt e.g. getShowReply()

giridhar196 commented 11 months ago

@adamlui are you planning to add that in the chatgpt.js soon? I am trying to design a useful product for the job-searching community this js library would be very helpful if you could help and add it. Thanks

adamlui commented 11 months ago

@giridhar196 yes but I am severely afflicted with COVID (for years now) so most of my time is spent in bed recovering but please be patient!

giridhar196 commented 11 months ago

Is there any possibility for you to help me set that in the background js? I tried but it is not working.